From db831793a5753d361ead6e42907cbda53629d948 Mon Sep 17 00:00:00 2001 From: Dane Strandboge <136023093+DStrand1@users.noreply.github.com> Date: Mon, 12 Feb 2024 11:36:02 -0600 Subject: [PATCH] chore: Fix readme linter not using correct Go version (#14758) --- .github/workflows/readme-linter.yml | 2 ++ tools/update_goversion/main.go | 5 +++++ 2 files changed, 7 insertions(+) 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 {