@@ -13,20 +13,15 @@ jobs:
1313 - uses : actions/checkout@v4
1414 with :
1515 ref : ' ${{ github.event.inputs.releasetag }}'
16- - name : Get Go Version
17- run : |
18- #!/bin/bash
19- GOVERSION=$({ [ -f .go-version ] && cat .go-version; })
20- echo "GOVERSION=$GOVERSION" >> $GITHUB_ENV
2116 - name : Set up Go
2217 uses : actions/setup-go@v5
2318 with :
24- go-version : ${{ env.GOVERSION }}
19+ go-version-file : go.mod
2520 - name : Set Badger Release Version
2621 run : |
2722 #!/bin/bash
2823 GIT_TAG_NAME='${{ github.event.inputs.releasetag }}'
29- if [[ "$GIT_TAG_NAME" == "v"* ]];
24+ if [[ "$GIT_TAG_NAME" == "v"* ]];
3025 then
3126 echo "this is a release tag"
3227 else
@@ -57,20 +52,15 @@ jobs:
5752 - uses : actions/checkout@v4
5853 with :
5954 ref : ' ${{ github.event.inputs.releasetag }}'
60- - name : Get Go Version
61- run : |
62- #!/bin/bash
63- GOVERSION=$({ [ -f .go-version ] && cat .go-version; })
64- echo "GOVERSION=$GOVERSION" >> $GITHUB_ENV
6555 - name : Set up Go
6656 uses : actions/setup-go@v5
6757 with :
68- go-version : ${{ env.GOVERSION }}
58+ go-version-file : go.mod
6959 - name : Set Badger Release Version
7060 run : |
7161 #!/bin/bash
7262 GIT_TAG_NAME='${{ github.event.inputs.releasetag }}'
73- if [[ "$GIT_TAG_NAME" == "v"* ]];
63+ if [[ "$GIT_TAG_NAME" == "v"* ]];
7464 then
7565 echo "this is a release tag"
7666 else
0 commit comments