From 8ab0d4d739e2e03e67a022f561e7e9bf0ded026b Mon Sep 17 00:00:00 2001 From: Eric Fennis Date: Sun, 23 May 2021 13:55:21 +0200 Subject: [PATCH] split up workflow step --- .github/workflows/release.yml | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 3c2891a..c82de1b 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -20,15 +20,18 @@ jobs: YARN_CACHE_DIR: ${{ steps.yarn_cache.outputs.YARN_CACHE_DIR }} steps: + - name: Set version ref + if: ${{ github.ref == 'refs/tags/*' }} + run: VERSION_REF=$GITHUB_REF + + - name: Set version ref + if: ${{ github.event.inputs.version }} + run: VERSION_REF=${{ github.event.inputs.version }} + - name: Get the version if: ${{ github.ref == 'refs/tags/*' }} id: get_version - run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\/\v} - - - name: Get the version - if: ${{ github.event.inputs.version }} - id: get_version - run: echo ::set-output name=VERSION::${{ github.event.inputs.version }} + run: echo ::set-output name=VERSION::${VERSION_REF/refs\/tags\/\v} - name: Get yarn cache directory path id: yarn_cache