Skip to content

Commit

Permalink
update-go: Add build-installer strategy for update-go
Browse files Browse the repository at this point in the history
in windows-artifacts.yml go version is mention under `build-installer`
instead of `build` so this is missed during the go version update. This
PR add it also so in future we don't miss.
  • Loading branch information
praveenkumar committed May 23, 2024
1 parent 2b3f53f commit 860f026
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/windows-artifacts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
fail-fast: false
matrix:
os: ['windows-2022']
go: ['1.20']
go: ['1.21']
steps:
- name: Check out repository code
uses: actions/checkout@v4
Expand Down
3 changes: 3 additions & 0 deletions update-go-version.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,7 @@ for f in .github/workflows/*.yml; do
if [ $(yq eval '.jobs.build.strategy.matrix | has("go")' "$f") == "true" ]; then
yq eval --inplace ".jobs.build.strategy.matrix.go[0] = ${golang_base_version} | .jobs.build.strategy.matrix.go[0] style=\"single\"" "$f";
fi
if [ $(yq eval '.jobs.build-installer.strategy.matrix | has("go")' "$f") == "true" ]; then
yq eval --inplace ".jobs.build-installer.strategy.matrix.go[0] = ${golang_base_version} | .jobs.build-installer.strategy.matrix.go[0] style=\"single\"" "$f";
fi
done

0 comments on commit 860f026

Please sign in to comment.