Directly set tag env var

Might as well.
This commit is contained in:
Asher 2026-03-26 11:59:42 -08:00
parent 86000a5a47
commit 087d9b77ea
No known key found for this signature in database
GPG key ID: D63C1EF81242354A
2 changed files with 7 additions and 14 deletions

View file

@ -43,11 +43,10 @@ jobs:
# Strip out the v (v4.9.1 -> 4.9.1).
- name: Get and set VERSION
run: |
TAG="${INPUT_VERSION}"
echo "VERSION=${TAG#v}" >> $GITHUB_ENV
env:
INPUT_VERSION: ${{ github.event.inputs.version || github.ref_name }}
TAG: ${{ github.event.inputs.version || github.ref_name }}
- run: npm run publish:npm
env:
VERSION: ${{ env.VERSION }}
@ -90,11 +89,10 @@ jobs:
# Strip out the v (v4.9.1 -> 4.9.1).
- name: Get and set VERSION
run: |
TAG="${INPUT_VERSION}"
echo "VERSION=${TAG#v}" >> $GITHUB_ENV
env:
INPUT_VERSION: ${{ github.event.inputs.version || github.ref_name }}
TAG: ${{ github.event.inputs.version || github.ref_name }}
- name: Validate package
uses: heyhusen/archlinux-package-action@c9f94059ccbebe8710d31d582f33ef4e84fe575c # v3.0.0
env:
@ -144,11 +142,10 @@ jobs:
# Strip out the v (v4.9.1 -> 4.9.1).
- name: Get and set VERSION
run: |
TAG="${INPUT_VERSION}"
echo "VERSION=${TAG#v}" >> $GITHUB_ENV
env:
INPUT_VERSION: ${{ github.event.inputs.version || github.ref_name }}
TAG: ${{ github.event.inputs.version || github.ref_name }}
- name: Download deb artifacts
uses: robinraju/release-downloader@daf26c55d821e836577a15f77d86ddc078948b05 # v1.12
with:

View file

@ -111,11 +111,10 @@ jobs:
# Strip out the v (v4.9.1 -> 4.9.1).
- name: Get and set VERSION
run: |
TAG="${REF_NAME}"
echo "VERSION=${TAG#v}" >> $GITHUB_ENV
env:
REF_NAME: ${{ inputs.version || github.ref_name }}
TAG: ${{ inputs.version || github.ref_name }}
- env:
VERSION: ${{ env.VERSION }}
run: npm run package $PKG_ARCH
@ -173,11 +172,10 @@ jobs:
# Strip out the v (v4.9.1 -> 4.9.1).
- name: Get and set VERSION
run: |
TAG="${REF_NAME}"
echo "VERSION=${TAG#v}" >> $GITHUB_ENV
env:
REF_NAME: ${{ inputs.version || github.ref_name }}
TAG: ${{ inputs.version || github.ref_name }}
- name: Build packages with nfpm
env:
VERSION: ${{ env.VERSION }}
@ -236,11 +234,10 @@ jobs:
# Strip out the v (v4.9.1 -> 4.9.1).
- name: Get and set VERSION
run: |
TAG="${REF_NAME}"
echo "VERSION=${TAG#v}" >> $GITHUB_ENV
env:
REF_NAME: ${{ inputs.version || github.ref_name }}
TAG: ${{ inputs.version || github.ref_name }}
- name: Build packages with nfpm
env:
VERSION: ${{ env.VERSION }}
@ -290,11 +287,10 @@ jobs:
# Strip out the v (v4.9.1 -> 4.9.1).
- name: Get and set VERSION
run: |
TAG="${REF_NAME}"
echo "VERSION=${TAG#v}" >> $GITHUB_ENV
env:
REF_NAME: ${{ inputs.version || github.ref_name }}
TAG: ${{ inputs.version || github.ref_name }}
- name: Modify version
env:
VERSION: ${{ env.VERSION }}