Skip to content

Commit 716a03a

Browse files
committed
CI: sync issue-form versions on the default branch, not the detached release tag
1 parent 2549a16 commit 716a03a

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

.github/workflows/update-issue-versions.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@ jobs:
1717
runs-on: ubuntu-latest
1818
steps:
1919
- 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 }}
2024

2125
- name: Regenerate version options
2226
env:
@@ -71,4 +75,4 @@ jobs:
7175
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
7276
git add .github/ISSUE_TEMPLATE
7377
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

Comments
 (0)