mirror of
https://github.com/rectorphp/rector.git
synced 2024-06-08 12:20:52 +00:00
[CI] try to fix ref on forks
This commit is contained in:
parent
660f51019a
commit
b39caa53cc
5
.github/workflows/ci_review.yaml
vendored
5
.github/workflows/ci_review.yaml
vendored
|
@ -50,16 +50,11 @@ jobs:
|
|||
with:
|
||||
# Must be used to trigger workflow after push
|
||||
token: ${{ secrets.ACCESS_TOKEN }}
|
||||
# see https://github.com/stefanzweifel/git-auto-commit-action#checkout-the-correct-branch
|
||||
ref: ${{ github.head_ref }}
|
||||
|
||||
# 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
|
||||
with:
|
||||
# see https://github.com/stefanzweifel/git-auto-commit-action#checkout-the-correct-branch
|
||||
ref: ${{ github.head_ref }}
|
||||
|
||||
# see https://github.com/shivammathur/setup-php
|
||||
-
|
||||
|
|
5
.github/workflows/rector_ci.yaml
vendored
5
.github/workflows/rector_ci.yaml
vendored
|
@ -36,16 +36,11 @@ jobs:
|
|||
with:
|
||||
# Must be used to trigger workflow after push
|
||||
token: ${{ secrets.ACCESS_TOKEN }}
|
||||
# see https://github.com/stefanzweifel/git-auto-commit-action#checkout-the-correct-branch
|
||||
ref: ${{ github.head_ref }}
|
||||
|
||||
# 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
|
||||
with:
|
||||
# see https://github.com/stefanzweifel/git-auto-commit-action#checkout-the-correct-branch
|
||||
ref: ${{ github.head_ref }}
|
||||
|
||||
-
|
||||
uses: shivammathur/setup-php@v1
|
||||
|
|
Loading…
Reference in New Issue
Block a user