chore: Fix readme linter not using correct Go version (#14758)

This commit is contained in:
Dane Strandboge 2024-02-12 11:36:02 -06:00 committed by GitHub
parent 957daa363f
commit db831793a5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 7 additions and 0 deletions

View File

@ -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

View File

@ -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 {