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:
11
11
name : " trigger"
12
12
runs-on : ubuntu-24.04
13
13
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
14
20
- run : |
15
- curl -X POST \
21
+ curl -X POST --fail \
16
22
-H "Accept: application/vnd.github.v3+json" \
17
23
-H "Authorization: token ${GH_TOKEN}" \
18
24
--data "{\"event_type\": \"playwright_tests_java\", \"client_payload\": {\"ref\": \"${GITHUB_SHA}\"}}" \
19
25
https://api.github.com/repos/microsoft/playwright-browsers/dispatches
20
26
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