Skip to content

Commit 714a9cb

Browse files
author
Tiffany Le-Nguyen
committed
chore: add token generator
1 parent de0461d commit 714a9cb

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

.github/workflows/cypress-demo.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,18 +15,26 @@ jobs:
1515
steps:
1616
- name: Checkout
1717
uses: actions/checkout@v2
18+
19+
- uses: navikt/github-app-token-generator@2d70c12368d1958155af4d283f9f21c9a2a8cb98
20+
id: get-token
21+
with:
22+
private-key: ${{ secrets.TOKENS_PRIVATE_KEY }}
23+
app-id: ${{ secrets.TOKENS_APP_ID }}
1824

1925
- name: Checkout @netlify/wait-for-deploy-action
2026
uses: actions/checkout@v2
2127
with:
2228
repository: netlify/wait-for-deploy-action
23-
token: ${{ secrets.PKG_RELEASE_TOKEN }} # token exposed to all Netlify repos
29+
token: ${{ steps.get-token.outputs.token }} # token exposed to all Netlify repos
2430
path: ./netlify-actions/wait-for-netlify-deploy
31+
2532
- name: Wait for Netlify Deploy
2633
id: deploy
2734
uses: ./netlify-actions/wait-for-netlify-deploy
2835
with:
2936
site-name: netlify-plugin-nextjs-demo
37+
3038
- name: Deploy successful
3139
if: ${{ steps.deploy.outputs.origin-url }}
3240
run: echo ${{ steps.deploy.outputs.origin-url }}

0 commit comments

Comments
 (0)