Skip to content

Commit c2b2b9e

Browse files
authored
[Browser tests] Switch to actions/create-github-app-token (#8)
1 parent 1705532 commit c2b2b9e

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

.github/workflows/browser-tests.yaml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,13 @@ jobs:
1010
name: Browser tests
1111
runs-on: ubuntu-latest
1212
steps:
13+
- uses: actions/create-github-app-token@v2
14+
name: Generate token
15+
id: generate_token
16+
with:
17+
app-id: ${{ secrets.AUTOMATION_CLIENT_ID }}
18+
private-key: ${{ secrets.AUTOMATION_CLIENT_SECRET }}
19+
owner: ${{ github.repository_owner }}
1320
- uses: octokit/request-action@v2.x
1421
name: Trigger browser tests
1522
with:
@@ -19,4 +26,4 @@ jobs:
1926
route: POST /repos/{repository}/actions/workflows/{workflow}/dispatches
2027
inputs: '{ "send-success-notification": "true", "project-version": "${{ github.ref_name }}" }'
2128
env:
22-
GITHUB_TOKEN: ${{ secrets.TRAVIS_GITHUB_TOKEN }}
29+
GITHUB_TOKEN: ${{ steps.generate_token.outputs.token }}

0 commit comments

Comments
 (0)