File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -11,11 +11,17 @@ jobs:
1111 name : " trigger"
1212 runs-on : ubuntu-24.04
1313 steps :
14+ - uses : actions/create-github-app-token@v1
15+ id : app-token
16+ with :
17+ app-id : ${{ vars.PLAYWRIGHT_APP_ID }}
18+ private-key : ${{ secrets.PLAYWRIGHT_PRIVATE_KEY }}
19+ repositories : playwright-browsers
1420 - run : |
15- curl -X POST \
21+ curl -X POST --fail \
1622 -H "Accept: application/vnd.github.v3+json" \
1723 -H "Authorization: token ${GH_TOKEN}" \
1824 --data "{\"event_type\": \"playwright_tests_java\", \"client_payload\": {\"ref\": \"${GITHUB_SHA}\"}}" \
1925 https://api.github.com/repos/microsoft/playwright-browsers/dispatches
2026 env:
21- GH_TOKEN: ${{ secrets.REPOSITORY_DISPATCH_PERSONAL_ACCESS_TOKEN }}
27+ GH_TOKEN: ${{ steps.app-token.outputs.token }}
You can’t perform that action at this time.
0 commit comments