Skip to content

Commit 2bcc467

Browse files
author
Lord of Scripts
committed
improving GH-3
1 parent 0f46829 commit 2bcc467

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

.github/workflows/crossbuild.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,15 +41,14 @@ jobs:
4141
- uses: actions/setup-go@v5
4242
with:
4343
go-version: '1.22.1'
44-
- name: Get the version
45-
id: get_version
46-
run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\//}
44+
- name: Set environment variable
45+
run: echo "MY_APPTAG=${GITHUB_REF/refs\/tags\//}" >> $GITHUB_ENV
4746
- name: Get OS and arch info
4847
run: |
4948
GOOSARCH=${{matrix.goosarch}}
5049
GOOS=${GOOSARCH%/*}
5150
GOARCH=${GOOSARCH#*/}
52-
APPVERSION=${{ steps.get_version.outputs.VERSION }}
51+
APPVERSION=$MY_APPTAG
5352
BINARY_NAME=${{github.repository}}-$GOOS-$GOARCH-$APPVERSION
5453
echo "BINARY_NAME=$BINARY_NAME" >> $GITHUB_ENV
5554
echo "GOOS=$GOOS" >> $GITHUB_ENV

0 commit comments

Comments
 (0)