Skip to content

Commit

Permalink
Fix actions/setup-go usage
Browse files Browse the repository at this point in the history
  • Loading branch information
nekohasekai committed Jan 24, 2024
1 parent 3ac055b commit 45f5724
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 11 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/debug.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
- name: Setup Go
uses: actions/setup-go@v4
with:
go-version: ">=1.21.0 <1.22.0"
go-version: ^1.21
- name: Add cache to Go proxy
run: |
version=`git rev-parse HEAD`
Expand All @@ -48,7 +48,7 @@ jobs:
- name: Setup Go
uses: actions/setup-go@v4
with:
go-version: ">=1.18.0 <1.19.0"
go-version: ~1.18
continue-on-error: true
- name: Build
run: |
Expand All @@ -64,7 +64,7 @@ jobs:
- name: Setup Go
uses: actions/setup-go@v4
with:
go-version: ">=1.19.0 <1.20.0"
go-version: ~1.19
continue-on-error: true
- name: Build
run: |
Expand All @@ -80,7 +80,7 @@ jobs:
- name: Setup Go
uses: actions/setup-go@v4
with:
go-version: ">=1.20.0 <1.21.0"
go-version: ~1.20
continue-on-error: true
- name: Build
run: |
Expand All @@ -96,7 +96,7 @@ jobs:
- name: Setup Go
uses: actions/setup-go@v4
with:
go-version: ">=1.21.0 <1.22.0"
go-version: ^1.21
continue-on-error: true
- name: Build
run: |
Expand All @@ -112,7 +112,7 @@ jobs:
- name: Setup Go
uses: actions/setup-go@v4
with:
go-version: ">=1.21.0 <1.22.0"
go-version: ^1.21
continue-on-error: true
- name: Build
run: |
Expand Down
6 changes: 1 addition & 5 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,10 @@ jobs:
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Get latest go version
id: version
run: |
echo ::set-output name=go_version::$(curl -s https://raw.githubusercontent.com/actions/go-versions/main/versions-manifest.json | grep -oE '"version": "[0-9]{1}.[0-9]{1,}(.[0-9]{1,})?"' | head -1 | cut -d':' -f2 | sed 's/ //g; s/"//g')
- name: Setup Go
uses: actions/setup-go@v4
with:
go-version: ${{ steps.version.outputs.go_version }}
go-version: ^1.21
- name: Cache go module
uses: actions/cache@v3
with:
Expand Down

0 comments on commit 45f5724

Please sign in to comment.