Skip to content

Commit a46b813

Browse files
committed
update generate-changelog to push to main instead of the tag
1 parent 1f6a168 commit a46b813

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

.github/workflows/generate-changelog.yml

+2-5
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
steps:
1212
- uses: actions/checkout@v4
1313
with:
14-
ref: ${{ github.head_ref }}
14+
ref: main
1515
token: ${{ secrets.CHANGELOG_GITHUB_TOKEN }}
1616
- name: Generate Changelog
1717
run: |
@@ -21,13 +21,10 @@ jobs:
2121
-u ${{ github.repository_owner }} \
2222
-p ${{ github.event.repository.name }} \
2323
--token ${{ secrets.CHANGELOG_GITHUB_TOKEN }}
24-
- name: Checkout to branch
25-
run: |
26-
git checkout "${GITHUB_REF#refs/heads/}"
2724
- name: Commit Changelog
2825
uses: stefanzweifel/git-auto-commit-action@v5
2926
with:
3027
commit_message: "chore: update changelog"
31-
branch: ${{ github.head_ref || github.ref_name }}
28+
branch: main
3229
file_pattern: "CHANGELOG.md"
3330
commit_author: "GitHub Action <actions@github.com>"

0 commit comments

Comments
 (0)