Skip to content

Commit 77a23d0

Browse files
committed
Use github app for repos
1 parent 63f5715 commit 77a23d0

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

.github/workflows/screengrabs.yaml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ jobs:
3535
build:
3636
needs: [prepare]
3737
runs-on: ubuntu-latest
38+
environment: demo
3839
steps:
3940
- name: Install dependencies
4041
run: |
@@ -71,10 +72,16 @@ jobs:
7172
env:
7273
ATMOS_PAGER: "false"
7374

75+
- uses: actions/create-github-app-token@v1
76+
id: github-app
77+
with:
78+
app-id: ${{ vars.BOT_GITHUB_APP_ID }}
79+
private-key: ${{ secrets.BOT_GITHUB_APP_PRIVATE_KEY }}
80+
7481
- name: Create or update PR
7582
uses: peter-evans/create-pull-request@v7
7683
with:
77-
token: ${{ secrets.GITHUB_TOKEN }}
84+
token: ${{ steps.github-app.outputs.token }}
7885
branch: "chore/update-build-screengrabs-for-${{ needs.prepare.outputs.version }}"
7986
title: "Update screengrabs for ${{ needs.prepare.outputs.version }}"
8087
delete-branch: true

0 commit comments

Comments
 (0)