Skip to content

Commit 923cb75

Browse files
committed
Fix automatic release major version
It was using the VS Code major version instead of code-server's.
1 parent 6cad757 commit 923cb75

1 file changed

Lines changed: 8 additions & 4 deletions

File tree

.github/workflows/release.yaml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -72,10 +72,12 @@ jobs:
7272
curl -sSfL https://github.com/goreleaser/nfpm/releases/download/v2.3.1/nfpm_2.3.1_`uname -s`_`uname -m`.tar.gz | tar -C ~/.local/bin -zxv nfpm
7373
echo "$HOME/.local/bin" >> $GITHUB_PATH
7474
75-
- name: Strip update/ and v from tag
75+
- name: Strip update/ and v from tag and set major version
7676
run: |
7777
version=${TAG#update/}
78-
echo "VERSION=${version#v}" >> $GITHUB_ENV
78+
version=${version#v}
79+
version=4${version:1}
80+
echo "VERSION=$version" >> $GITHUB_ENV
7981
8082
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
8183
with:
@@ -164,10 +166,12 @@ jobs:
164166
curl -sSfL https://github.com/goreleaser/nfpm/releases/download/v2.3.1/nfpm_2.3.1_`uname -s`_`uname -m`.tar.gz | tar -C ~/.local/bin -zxv nfpm
165167
echo "$HOME/.local/bin" >> $GITHUB_PATH
166168
167-
- name: Strip update/ and v from tag
169+
- name: Strip update/ and v from tag and set major version
168170
run: |
169171
version=${TAG#update/}
170-
echo "VERSION=${version#v}" >> $GITHUB_ENV
172+
version=${version#v}
173+
version=4${version:1}
174+
echo "VERSION=$version" >> $GITHUB_ENV
171175
172176
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
173177
with:

0 commit comments

Comments
 (0)