-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: compile versions workflow (#269)
<!-- Thank you for proposing a pull request! Please note that SOME TESTS WILL LIKELY FAIL due to how GitHub exposes secrets in Pull Requests from forks. Someone from the team will review your Pull Request and respond. Please describe your change and any implementation details below. -->
- Loading branch information
Showing
2 changed files
with
11 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,6 +23,16 @@ jobs: | |
with: | ||
go-version-file: 'go.mod' | ||
|
||
# This ensures the remote branch is check out or a new local branch is created. | ||
# This allows us to diff against existing changes to prevet uneccessary PR updates. | ||
- name: 'Setup git' | ||
run: |- | ||
git config user.name "google-github-actions-bot" | ||
git config user.email "[email protected]" | ||
# fetch the PR branch and switch to it, if it doesnt exist a new local branch is created | ||
git fetch origin "${{ env.PR_BRANCH }}" && git switch -c "${{ env.PR_BRANCH }}" | ||
- name: 'Get versions list' | ||
run: |- | ||
mkdir -p ./data | ||
|
@@ -41,10 +51,6 @@ jobs: | |
echo "had_changes=true" >> ${GITHUB_OUTPUT} | ||
git config user.name "google-github-actions-bot" | ||
git config user.email "[email protected]" | ||
git checkout -b "${{ env.PR_BRANCH }}" | ||
git add ./data/versions.json | ||
git commit -m "Update gcloud versions ($(date --iso-8601=h))" | ||
git push -f origin "${{ env.PR_BRANCH }}" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -435,6 +435,5 @@ | |
"481.0.0", | ||
"482.0.0", | ||
"483.0.0", | ||
"484.0.0", | ||
"485.0.0" | ||
"484.0.0" | ||
] |