Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
sunny0826 committed Dec 27, 2023
1 parent 018644e commit 66596d9
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
7 changes: 6 additions & 1 deletion .github/workflows/go.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,11 @@ permissions:
contents: read
# Optional: allow read access to pull request. Use with `only-new-issues` option.
# pull-requests: read

env:
# Common versions
GO_VERSION: '1.20'

jobs:
test:
name: test
Expand All @@ -25,7 +30,7 @@ jobs:
- name: Set up Go 1.20
uses: actions/setup-go@v5
with:
go-version: 1.20
go-version: ${{ env.GO_VERSION }}
id: go

- name: Check out code into the Go module directory
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ permissions:
# packages: write
# issues: write

env:
# Common versions
GO_VERSION: '1.20'

jobs:
goreleaser:
runs-on: ubuntu-latest
Expand All @@ -24,7 +28,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: 1.20
go-version: ${{ env.GO_VERSION }}
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v5
with:
Expand Down

0 comments on commit 66596d9

Please sign in to comment.