Update workflow

This commit is contained in:
世界
2024-01-24 12:13:12 +08:00
parent c8318058bb
commit e478d3c2dc
3 changed files with 18 additions and 48 deletions

View File

@@ -25,10 +25,10 @@ jobs:
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
with:
fetch-depth: 0
- name: Get latest go version
id: version
run: |
echo 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') >> $GITHUB_OUTPUT
- name: Setup Go
uses: actions/setup-go@v4
with:
go-version: ^1.21
- name: Setup Go
uses: actions/setup-go@v5
with: