From 923cb753b89c8ecc9b52009a24c97bf513ef2d0c Mon Sep 17 00:00:00 2001 From: Asher Date: Mon, 1 Jun 2026 14:02:13 -0800 Subject: [PATCH] Fix automatic release major version It was using the VS Code major version instead of code-server's. --- .github/workflows/release.yaml | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 8f2979e20..d6d0bd3a6 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -72,10 +72,12 @@ jobs: 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 echo "$HOME/.local/bin" >> $GITHUB_PATH - - name: Strip update/ and v from tag + - name: Strip update/ and v from tag and set major version run: | version=${TAG#update/} - echo "VERSION=${version#v}" >> $GITHUB_ENV + version=${version#v} + version=4${version:1} + echo "VERSION=$version" >> $GITHUB_ENV - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6 with: @@ -164,10 +166,12 @@ jobs: 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 echo "$HOME/.local/bin" >> $GITHUB_PATH - - name: Strip update/ and v from tag + - name: Strip update/ and v from tag and set major version run: | version=${TAG#update/} - echo "VERSION=${version#v}" >> $GITHUB_ENV + version=${version#v} + version=4${version:1} + echo "VERSION=$version" >> $GITHUB_ENV - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6 with: