mirror of
https://github.com/cdr/code-server.git
synced 2026-04-11 17:47:16 +02:00
Directly set tag env var
Might as well.
This commit is contained in:
parent
86000a5a47
commit
087d9b77ea
2 changed files with 7 additions and 14 deletions
9
.github/workflows/publish.yaml
vendored
9
.github/workflows/publish.yaml
vendored
|
|
@ -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:
|
||||
|
|
|
|||
12
.github/workflows/release.yaml
vendored
12
.github/workflows/release.yaml
vendored
|
|
@ -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 }}
|
||||
|
|
|
|||
Loading…
Reference in a new issue