Add env variable

This commit is contained in:
Eric Fennis
2021-05-23 14:17:24 +02:00
parent 82fcb2a896
commit ced1431b6b

View File

@@ -20,20 +20,13 @@ 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: Echo version
run: echo $VERSION_REF
- name: Get the version
id: get_version
run: echo ::set-output name=VERSION::${VERSION_REF/refs\/tags\/\v}
run: |
echo $VERSION_REF
echo ::set-output name=VERSION::${VERSION_REF/refs\/tags\/\v}
env:
VERSION_REF: ${{ github.event.inputs.version || github.ref }}
- name: Get yarn cache directory path
id: yarn_cache