There was an error while loading. Please reload this page.
1 parent 2549a16 commit 716a03aCopy full SHA for 716a03a
1 file changed
.github/workflows/update-issue-versions.yml
@@ -17,6 +17,10 @@ jobs:
17
runs-on: ubuntu-latest
18
steps:
19
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
20
+ # On a release event the default checkout lands on the tag (detached HEAD), so the push
21
+ # below fails. Check out the default branch instead, for both triggers.
22
+ with:
23
+ ref: ${{ github.event.repository.default_branch }}
24
25
- name: Regenerate version options
26
env:
@@ -71,4 +75,4 @@ jobs:
71
75
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
72
76
git add .github/ISSUE_TEMPLATE
73
77
git commit -m "Sync issue-form version dropdowns with the latest release"
74
- git push
78
+ git push origin HEAD:${{ github.event.repository.default_branch }}
0 commit comments