Skip to content

Commit d761aa3

Browse files
Use app token for deploying PR previews (#165)
1 parent 208244d commit d761aa3

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

.github/workflows/pr-preview.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,16 @@ jobs:
1111
pr-preview:
1212
runs-on: ubuntu-latest
1313
steps:
14+
- name: Create app token
15+
uses: actions/create-github-app-token@v1
16+
id: app-token
17+
with:
18+
app-id: ${{ vars.THEOPLAYER_BOT_APP_ID }}
19+
private-key: ${{ secrets.THEOPLAYER_BOT_PRIVATE_KEY }}
1420
- name: Checkout
1521
uses: actions/checkout@v4
1622
with:
23+
token: ${{ steps.app-token.outputs.token }}
1724
fetch-depth: 1
1825
submodules: true
1926
# Build the website
@@ -42,6 +49,7 @@ jobs:
4249
- name: Deploy preview
4350
uses: rossjrw/pr-preview-action@v1
4451
with:
52+
token: ${{ steps.app-token.outputs.token }}
4553
source-dir: ./build/
4654
preview-branch: gh-pages
4755
umbrella-dir: pr-preview

0 commit comments

Comments
 (0)