Skip to content

Commit cb81908

Browse files
authored
Update GitHub Actions workflow for Playwright roll
1 parent cd66dd7 commit cb81908

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

.github/workflows/roll-next.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ jobs:
1111
runs-on: ubuntu-24.04
1212
permissions:
1313
contents: write
14-
pull-requests: write
1514
steps:
1615
- uses: actions/checkout@v4
1716
- uses: actions/checkout@v4
@@ -49,10 +48,20 @@ jobs:
4948
git add .
5049
git commit -m "feat(roll): roll to ToT Playwright ($(date +"%d-%m-%y"))"
5150
git push origin $BRANCH_NAME --force
51+
- uses: actions/create-github-app-token@v1
52+
id: app-token
53+
with:
54+
app-id: ${{ vars.PLAYWRIGHT_APP_ID }}
55+
private-key: ${{ secrets.PLAYWRIGHT_PRIVATE_KEY }}
56+
- name: Create Pull Request
57+
uses: actions/github-script@v7
58+
with:
59+
github-token: ${{ steps.app-token.outputs.token }}
5260
- name: Create Pull Request
5361
uses: actions/github-script@v7
5462
if: ${{ steps.prepare-branch.outputs.HAS_CHANGES == '1' }}
5563
with:
64+
github-token: ${{ steps.app-token.outputs.token }}
5665
script: |
5766
await github.rest.pulls.create({
5867
owner: 'microsoft',

0 commit comments

Comments
 (0)