Skip to content

Commit

Permalink
reattach head (via #125)
Browse files Browse the repository at this point in the history
  • Loading branch information
sseliverstov authored Mar 18, 2020
1 parent f7ff973 commit 4e57d95
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,13 @@ jobs:
env:
CI: true

- name: checkout
- uses: actions/checkout@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: npm release
run: |
Expand Down

0 comments on commit 4e57d95

Please sign in to comment.