[CI] try to fix ref on forks

This commit is contained in:
Tomas Votruba 2020-11-08 22:27:13 +00:00
parent 660f51019a
commit b39caa53cc
2 changed files with 0 additions and 10 deletions

View File

@ -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
-

View File

@ -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