Use PAT to publish prs to bcr on release

This commit is contained in:
Derek Cormier 2022-06-07 10:54:08 -07:00
parent fbb26dc678
commit 73bfc53660
1 changed files with 1 additions and 6 deletions

View File

@ -49,18 +49,13 @@ jobs:
with: with:
repository: ${{ env.BCR }} repository: ${{ env.BCR }}
path: 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 - name: Create bcr entry
run: node .github/workflows/create-bcr-entry.mjs project bcr $GITHUB_REPOSITORY ${{ steps.get_tag.outputs.TAG }} run: node .github/workflows/create-bcr-entry.mjs project bcr $GITHUB_REPOSITORY ${{ steps.get_tag.outputs.TAG }}
- name: Create Pull Request - name: Create Pull Request
id: post_pr id: post_pr
uses: peter-evans/create-pull-request@v4 uses: peter-evans/create-pull-request@v4
with: with:
token: ${{ steps.generate-token.outputs.token }} token: ${{ secrets.DEREK_BCR_PAT }}
path: bcr path: bcr
push-to-fork: ${{ env.BCR_FORK }} push-to-fork: ${{ env.BCR_FORK }}
commit-message: ${{ github.repository }}@${{ steps.get_tag.outputs.TAG }} commit-message: ${{ github.repository }}@${{ steps.get_tag.outputs.TAG }}