Skip to content

Commit

Permalink
chore(ci): fix repo checkout in PR (#225)
Browse files Browse the repository at this point in the history
  • Loading branch information
aslafy-z authored Nov 10, 2022
1 parent 144eef6 commit f8de77c
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,15 +48,10 @@ jobs:
concurrency:
group: release-${{ github.ref }}
steps:
# workaround for missing secret in fork PRs - see https://github.com/actions/checkout/issues/298
- if: github.event.pull_request.head.repo.full_name == github.repository
uses: actions/checkout@v3
with:
token: ${{ secrets.PAT_TOKEN }}

# in forks, the token is not available so we cannot use it
- if: github.event.pull_request.head.repo.full_name != github.repository
uses: actions/checkout@v3
token: ${{ secrets.PAT_TOKEN || github.token }}

- run: git fetch --unshallow --tags

Expand Down

0 comments on commit f8de77c

Please sign in to comment.