Skip to content

Commit 9c8dd47

Browse files
author
Ivan De Marino
committed
Fix recently broken GH actions, caused by removal of .go-version
1 parent 0b274ce commit 9c8dd47

File tree

3 files changed

+3
-15
lines changed

3 files changed

+3
-15
lines changed

.github/workflows/ci-github-actions.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,8 @@ jobs:
1414
runs-on: ubuntu-latest
1515
steps:
1616
- uses: actions/checkout@v3
17-
- id: go-version
18-
# Reference: https://github.com/actions/setup-go/issues/23
19-
run: echo "::set-output name=version::$(cat ./.go-version)"
2017
- uses: actions/setup-go@v3
2118
with:
22-
go-version: ${{ steps.go-version.outputs.version }}
19+
go-version-file: 'go.mod'
2320
- run: go install github.com/rhysd/actionlint/cmd/actionlint@latest
2421
- run: actionlint

.github/workflows/ci-goreleaser.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,9 @@ jobs:
1414
runs-on: ubuntu-latest
1515
steps:
1616
- uses: actions/checkout@v3
17-
- id: go-version
18-
# Reference: https://github.com/actions/setup-go/issues/23
19-
run: echo "::set-output name=version::$(cat ./.go-version)"
2017
- uses: actions/setup-go@v3
2118
with:
22-
go-version: ${{ steps.go-version.outputs.version }}
19+
go-version-file: 'go.mod'
2320
- uses: goreleaser/goreleaser-action@v3
2421
with:
2522
args: check

.github/workflows/release.yml

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,9 @@ jobs:
1616
runs-on: ubuntu-latest
1717
steps:
1818
- uses: actions/checkout@v3
19-
with:
20-
# Required for release notes
21-
fetch-depth: 0
22-
- id: go-version
23-
# Reference: https://github.com/actions/setup-go/issues/23
24-
run: echo "::set-output name=version::$(cat ./.go-version)"
2519
- uses: actions/setup-go@v3
2620
with:
27-
go-version: ${{ steps.go-version.outputs.version }}
21+
go-version-file: 'go.mod'
2822
- name: Generate Release Notes
2923
# Fetch CHANGELOG.md contents up to Git tag prior to this release, skipping top two lines
3024
run: sed -n -e "1{/# /d;}" -e "2{/^$/d;}" -e "/# $(git describe --abbrev=0 --exclude="$(git describe --abbrev=0 --match='v*.*.*' --tags)" --match='v*.*.*' --tags | tr -d v)/q;p" CHANGELOG.md > /tmp/release-notes.txt

0 commit comments

Comments
 (0)