Skip to content

Commit 6abad46

Browse files
committed
chore(ci): fix new output format workflows
1 parent 57c20b8 commit 6abad46

File tree

2 files changed

+18
-6
lines changed

2 files changed

+18
-6
lines changed

.github/workflows/build.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,15 @@ jobs:
1111
-
1212
id: vars
1313
run: |
14-
echo ::set-output name=go_version::$(grep '^FROM go' .github/go/Dockerfile | cut -d ' ' -f 2 | cut -d ':' -f 2)
15-
echo "Using Go version ${{ steps.vars.outputs.go_version }}"
14+
goVersion=$(grep '^FROM go' .github/go/Dockerfile | cut -d ' ' -f 2 | cut -d ':' -f 2)
15+
echo "go_version=${goVersion}" >> $GITHUB_OUTPUT
16+
echo "Using Go version ${goVersion}"
1617
-
17-
name: Setup go
18-
uses: actions/setup-go@v2
18+
name: Set up Go
19+
uses: actions/setup-go@v5
1920
with:
2021
go-version: ${{ steps.vars.outputs.go_version }}
22+
-
2123
-
2224
name: Download Go modules
2325
run: go mod download

.github/workflows/release.yml

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,18 @@ jobs:
1313
uses: actions/checkout@v2
1414
with:
1515
fetch-depth: 0
16-
- name: setup dependencies
17-
uses: actions/setup-go@v2
16+
-
17+
id: vars
18+
run: |
19+
goVersion=$(grep '^FROM go' .github/go/Dockerfile | cut -d ' ' -f 2 | cut -d ':' -f 2)
20+
echo "go_version=${goVersion}" >> $GITHUB_OUTPUT
21+
echo "Using Go version ${goVersion}"
22+
-
23+
name: Set up Go
24+
uses: actions/setup-go@v5
25+
with:
26+
go-version: ${{ steps.vars.outputs.go_version }}
27+
-
1828
- name: release dry run
1929
run: make release-dry-run
2030
- uses: go-semantic-release/action@v1

0 commit comments

Comments
 (0)