Skip to content

Commit

Permalink
update generate-changelog to push to main instead of the tag
Browse files Browse the repository at this point in the history
  • Loading branch information
sirkitree committed Nov 4, 2024
1 parent 1f6a168 commit a46b813
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions .github/workflows/generate-changelog.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.head_ref }}
ref: main
token: ${{ secrets.CHANGELOG_GITHUB_TOKEN }}
- name: Generate Changelog
run: |
Expand All @@ -21,13 +21,10 @@ jobs:
-u ${{ github.repository_owner }} \
-p ${{ github.event.repository.name }} \
--token ${{ secrets.CHANGELOG_GITHUB_TOKEN }}
- name: Checkout to branch
run: |
git checkout "${GITHUB_REF#refs/heads/}"
- name: Commit Changelog
uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: "chore: update changelog"
branch: ${{ github.head_ref || github.ref_name }}
branch: main
file_pattern: "CHANGELOG.md"
commit_author: "GitHub Action <[email protected]>"

0 comments on commit a46b813

Please sign in to comment.