Skip to content

Commit

Permalink
Use PAT for PR Preview
Browse files Browse the repository at this point in the history
Forks cannot initiate previews using default GH action token. See
rossjrw/pr-preview-action#3 for details
  • Loading branch information
GregSutcliffe committed May 17, 2023
1 parent e9a31d4 commit 198f87b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@ on:

concurrency: preview-${{ github.ref }}

permissions: write-all

jobs:
deploy-preview:
runs-on: ubuntu-latest
Expand All @@ -35,4 +33,5 @@ jobs:
with:
source-dir: ./output/
umbrella-dir: previews/
token: ${{ secrets.PR_PREVIEW_ACTION_PAT }}
custom-url: ansible-community.github.io/community-website/

0 comments on commit 198f87b

Please sign in to comment.