We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0f46829 commit 2bcc467Copy full SHA for 2bcc467
.github/workflows/crossbuild.yml
@@ -41,15 +41,14 @@ jobs:
41
- uses: actions/setup-go@v5
42
with:
43
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\//}
+ - name: Set environment variable
+ run: echo "MY_APPTAG=${GITHUB_REF/refs\/tags\//}" >> $GITHUB_ENV
47
- name: Get OS and arch info
48
run: |
49
GOOSARCH=${{matrix.goosarch}}
50
GOOS=${GOOSARCH%/*}
51
GOARCH=${GOOSARCH#*/}
52
- APPVERSION=${{ steps.get_version.outputs.VERSION }}
+ APPVERSION=$MY_APPTAG
53
BINARY_NAME=${{github.repository}}-$GOOS-$GOARCH-$APPVERSION
54
echo "BINARY_NAME=$BINARY_NAME" >> $GITHUB_ENV
55
echo "GOOS=$GOOS" >> $GITHUB_ENV
0 commit comments