Skip to content

Commit a5c1b6a

Browse files
committed
Use inputs instead of github.event.inputs
Just to be consistent with the other workflow. They are the same except inputs treats booleans as booleans instead of strings, which seems like it might be better anyway.
1 parent 2743655 commit a5c1b6a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/publish.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636
uses: robinraju/release-downloader@daf26c55d821e836577a15f77d86ddc078948b05 # v1.12
3737
with:
3838
repository: "coder/code-server"
39-
tag: ${{ github.event.inputs.version || github.ref_name }}
39+
tag: ${{ inputs.version || github.ref_name }}
4040
fileName: "package.tar.gz"
4141
out-file-path: "release-npm-package"
4242

@@ -46,7 +46,7 @@ jobs:
4646
echo "VERSION=${TAG#v}" >> $GITHUB_ENV
4747
4848
env:
49-
TAG: ${{ github.event.inputs.version || github.ref_name }}
49+
TAG: ${{ inputs.version || github.ref_name }}
5050
- run: npm run publish:npm
5151
env:
5252
VERSION: ${{ env.VERSION }}
@@ -92,7 +92,7 @@ jobs:
9292
echo "VERSION=${TAG#v}" >> $GITHUB_ENV
9393
9494
env:
95-
TAG: ${{ github.event.inputs.version || github.ref_name }}
95+
TAG: ${{ inputs.version || github.ref_name }}
9696
- name: Validate package
9797
uses: heyhusen/archlinux-package-action@c9f94059ccbebe8710d31d582f33ef4e84fe575c # v3.0.0
9898
env:
@@ -145,7 +145,7 @@ jobs:
145145
echo "VERSION=${TAG#v}" >> $GITHUB_ENV
146146
147147
env:
148-
TAG: ${{ github.event.inputs.version || github.ref_name }}
148+
TAG: ${{ inputs.version || github.ref_name }}
149149
- name: Download deb artifacts
150150
uses: robinraju/release-downloader@daf26c55d821e836577a15f77d86ddc078948b05 # v1.12
151151
with:

0 commit comments

Comments
 (0)