We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2dd2a5b commit de48b55Copy full SHA for de48b55
.github/workflows/generate-changelog.yml
@@ -18,9 +18,13 @@ jobs:
18
-u ${{ github.repository_owner }} \
19
-p ${{ github.event.repository.name }} \
20
--token ${{ secrets.CHANGELOG_GITHUB_TOKEN }}
21
- - uses: stefanzweifel/git-auto-commit-action@v5
+ - name: Checkout to branch
22
+ run: |
23
+ git checkout "${GITHUB_REF#refs/heads/}"
24
+ - name: Commit Changelog
25
+ uses: stefanzweifel/git-auto-commit-action@v5
26
with:
27
commit_message: "chore: update changelog"
- branch: ${{ github.head_ref }}
28
+ branch: ${{ github.head_ref || github.ref_name }}
29
file_pattern: "CHANGELOG.md"
30
commit_author: "GitHub Action <actions@github.com>"
0 commit comments