Skip to content

Commit b716a33

Browse files
authored
fix: compile versions fix (#271)
<!-- 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. -->
1 parent 0fdf48a commit b716a33

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

.github/workflows/compile-versions.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,15 +23,19 @@ jobs:
2323
with:
2424
go-version-file: 'go.mod'
2525

26-
# This ensures the remote branch is check out or a new local branch is created.
27-
# This allows us to diff against existing changes to prevet uneccessary PR updates.
2826
- name: 'Setup git'
2927
run: |-
3028
git config user.name "google-github-actions-bot"
3129
git config user.email "[email protected]"
3230
33-
# fetch the PR branch and switch to it, if it doesnt exist a new local branch is created
34-
noop=$(git fetch origin "${{ env.PR_BRANCH }}")
31+
# Fetch the existing PR branch, continue if not exists
32+
- name: 'Fetch remote'
33+
continue-on-error: true
34+
run: |-
35+
git fetch origin "${{ env.PR_BRANCH }}"
36+
37+
- name: 'Use PR_BRANCH'
38+
run: |-
3539
git switch -c "${{ env.PR_BRANCH }}"
3640
3741
- name: 'Get versions list'

0 commit comments

Comments
 (0)