fix: use pat for bcr mirror

This commit is contained in:
Derek Cormier 2022-05-16 17:18:42 -07:00 committed by Derek Cormier
parent bbe8047a55
commit ea7a3e4549
1 changed files with 3 additions and 6 deletions

View File

@ -30,6 +30,8 @@ env:
# String containing submitters to tag
SUBMITTERS: "@alexeagle, @kormide"
TOKEN: ${{ secrets.BCR_ALEXEAGLE_PAT }}
jobs:
bcr-pull-request:
runs-on: ubuntu-latest
@ -52,18 +54,13 @@ jobs:
with:
repository: ${{ env.BCR }}
path: bcr
- uses: tibdex/github-app-token@v1
id: generate-token
with:
app_id: ${{ secrets.BCR_APP_ID }}
private_key: ${{ secrets.BCR_APP_PRIVATE_KEY }}
- name: Create bcr entry
run: node .github/workflows/create-bcr-entry.mjs project bcr $GITHUB_REPOSITORY ${{ steps.get_tag.outputs.TAG }}
- name: Create Pull Request
id: post_pr
uses: peter-evans/create-pull-request@v4
with:
token: ${{ steps.generate-token.outputs.token }}
token: ${{ env.TOKEN }}
path: bcr
push-to-fork: ${{ env.BCR_FORK }}
commit-message: ${{ github.repository }}@${{ steps.get_tag.outputs.TAG }}