From 6447d6e4576aef083841e4adce73f95869ac642d Mon Sep 17 00:00:00 2001 From: Stas Seliverstov Date: Wed, 18 Mar 2020 14:41:27 +0300 Subject: [PATCH] reatach head --- .github/workflows/release.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 35036154f..d2baab0a3 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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: |