mirror of
https://github.com/lucide-icons/lucide.git
synced 2025-12-28 22:36:27 +01:00
Add env variable
This commit is contained in:
17
.github/workflows/release.yml
vendored
17
.github/workflows/release.yml
vendored
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user