Skip to content

Commit b032b35

Browse files
fix: update default branch reference in changelog updater workflow
1 parent ab9cde6 commit b032b35

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/update-changelog.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
- name: Checkout code
1717
uses: actions/checkout@v4
1818
with:
19-
ref: main
19+
ref: ${{ github.event.repository.default_branch }}
2020

2121
- name: Update Changelog
2222
uses: stefanzweifel/changelog-updater-action@v1
@@ -27,6 +27,6 @@ jobs:
2727
- name: Commit updated CHANGELOG
2828
uses: stefanzweifel/git-auto-commit-action@v5
2929
with:
30-
branch: main
30+
branch: ${{ github.event.repository.default_branch }}
3131
commit_message: Update CHANGELOG
3232
file_pattern: CHANGELOG.md

0 commit comments

Comments
 (0)