File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 :
You can’t perform that action at this time.
0 commit comments