diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml index c492069ce..16d5d578e 100644 --- a/.github/workflows/publish.yaml +++ b/.github/workflows/publish.yaml @@ -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: diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 98c892958..fdd41f741 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -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 }}