diff --git a/.github/workflows/readme-linter.yml b/.github/workflows/readme-linter.yml index 3ece162fc..6fda0ece7 100644 --- a/.github/workflows/readme-linter.yml +++ b/.github/workflows/readme-linter.yml @@ -10,6 +10,8 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/setup-go@v5 + with: + go-version: '1.22.0' - uses: actions/checkout@v4 with: fetch-depth: 0 diff --git a/tools/update_goversion/main.go b/tools/update_goversion/main.go index a40064664..86be0547c 100644 --- a/tools/update_goversion/main.go +++ b/tools/update_goversion/main.go @@ -204,6 +204,11 @@ func main() { Regex: `(GO_VERSION_SHA_amd64)=".*"`, Replace: fmt.Sprintf("$1=%q", hashes[fmt.Sprintf("go%s.darwin-amd64.tar.gz", version)]), }, + { + FileName: ".github/workflows/readme-linter.yml", + Regex: `(go-version): '\d.\d*.\d'`, + Replace: fmt.Sprintf("$1: '%s'", version), + }, } for _, f := range files {