Skip to content

Commit

Permalink
Workflow: use master branch: reattach head attempt
Browse files Browse the repository at this point in the history
  • Loading branch information
IDCT Bartosz Pachołek committed Nov 19, 2019
1 parent bc0208c commit 8c4f7fa
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/php.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,13 @@ jobs:
with:
ref: master

- name: reattach HEAD to Head Ref
run: git checkout "$(echo ${{ github.head_ref }} | sed -E 's|refs/[a-zA-Z]+/||')"
if: github.head_ref != ''
- name: reattach HEAD to Ref
run: git checkout "$(echo ${{ github.ref }} | sed -E 's|refs/[a-zA-Z]+/||')"
if: github.head_ref == ''

- name: Setup PHP
uses: shivammathur/setup-php@master
with:
Expand Down

0 comments on commit 8c4f7fa

Please sign in to comment.