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 d21e99b
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 12 deletions.
6 changes: 0 additions & 6 deletions .github/workflows/debug.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,6 @@ jobs:
fetch-depth: 0
- name: Setup Go
uses: actions/setup-go@v4
with:
go-version: ">=1.21.0 <1.22.0"
- name: Add cache to Go proxy
run: |
version=`git rev-parse HEAD`
Expand Down Expand Up @@ -95,8 +93,6 @@ jobs:
fetch-depth: 0
- name: Setup Go
uses: actions/setup-go@v4
with:
go-version: ">=1.21.0 <1.22.0"
continue-on-error: true
- name: Build
run: |
Expand All @@ -111,8 +107,6 @@ jobs:
fetch-depth: 0
- name: Setup Go
uses: actions/setup-go@v4
with:
go-version: ">=1.21.0 <1.22.0"
continue-on-error: true
- name: Build
run: |
Expand Down
6 changes: 0 additions & 6 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,8 @@ 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 }}
- name: Cache go module
uses: actions/cache@v3
with:
Expand Down

0 comments on commit d21e99b

Please sign in to comment.