Skip to content

Commit d6dc27c

Browse files
Update update-changelog.yml
use default branch as reference
1 parent 1bb2290 commit d6dc27c

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
@@ -15,7 +15,7 @@ jobs:
1515
- name: Checkout code
1616
uses: actions/checkout@v3
1717
with:
18-
ref: main
18+
ref: ${{ github.event.repository.default_branch }}
1919

2020
- name: Update Changelog
2121
uses: stefanzweifel/changelog-updater-action@v1
@@ -26,6 +26,6 @@ jobs:
2626
- name: Commit updated CHANGELOG
2727
uses: stefanzweifel/git-auto-commit-action@v4
2828
with:
29-
branch: main
29+
branch: ${{ github.event.repository.default_branch }}
3030
commit_message: Update CHANGELOG
3131
file_pattern: CHANGELOG.md

0 commit comments

Comments
 (0)