We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1f6a168 commit a46b813Copy full SHA for a46b813
.github/workflows/generate-changelog.yml
@@ -11,7 +11,7 @@ jobs:
11
steps:
12
- uses: actions/checkout@v4
13
with:
14
- ref: ${{ github.head_ref }}
+ ref: main
15
token: ${{ secrets.CHANGELOG_GITHUB_TOKEN }}
16
- name: Generate Changelog
17
run: |
@@ -21,13 +21,10 @@ jobs:
21
-u ${{ github.repository_owner }} \
22
-p ${{ github.event.repository.name }} \
23
--token ${{ secrets.CHANGELOG_GITHUB_TOKEN }}
24
- - name: Checkout to branch
25
- run: |
26
- git checkout "${GITHUB_REF#refs/heads/}"
27
- name: Commit Changelog
28
uses: stefanzweifel/git-auto-commit-action@v5
29
30
commit_message: "chore: update changelog"
31
- branch: ${{ github.head_ref || github.ref_name }}
+ branch: main
32
file_pattern: "CHANGELOG.md"
33
commit_author: "GitHub Action <actions@github.com>"
0 commit comments