mirror of
https://github.com/rectorphp/rector.git
synced 2025-01-19 14:27:14 +01:00
[ci] add fix for missing secrets in 3rd party forks
This commit is contained in:
parent
4d4def62d1
commit
2243a81445
11
.github/workflows/ci_review.yaml
vendored
11
.github/workflows/ci_review.yaml
vendored
@ -38,11 +38,20 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
# workaround for missing secret in fork PRs - see https://github.com/actions/checkout/issues/298
|
||||
# see https://github.com/rectorphp/rector/commit/d395e1c28b8e6a56711dcc2e10490a82965850e4
|
||||
-
|
||||
if: github.event.pull_request.head.repo.full_name == github.repository
|
||||
uses: actions/checkout@v2
|
||||
with:
|
||||
# Must be used to trigger workflow after push
|
||||
token: ${{ secrets.ACCESS_TOKEN }}
|
||||
|
||||
# in forks, the token is not available - so we cannot us eit
|
||||
-
|
||||
if: github.event.pull_request.head.repo.full_name != github.repository
|
||||
uses: actions/checkout@v2
|
||||
|
||||
# see https://github.com/shivammathur/setup-php
|
||||
- uses: shivammathur/setup-php@v1
|
||||
with:
|
||||
|
Loading…
x
Reference in New Issue
Block a user