Skip to content

Commit 5b2d313

Browse files
authored
chore(changelog): update changelog.yml (#36)
1 parent 25f1fb1 commit 5b2d313

1 file changed

Lines changed: 8 additions & 6 deletions

File tree

.github/workflows/changelog.yml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,17 @@ on:
33
push:
44
branches:
55
- main
6-
pull_request:
7-
branches:
8-
- main
96
permissions:
107
contents: write
118
jobs:
129
changelog:
1310
name: Update CHANGELOG
1411
runs-on: ubuntu-latest
1512
timeout-minutes: 15
16-
if: "!startsWith(github.event.head_commit.message, '[Release]')"
13+
if: |
14+
!startsWith(github.event.head_commit.message, '[Release]') &&
15+
!startsWith(github.event.head_commit.message, 'docs: update CHANGELOG.md') &&
16+
github.event.head_commit.author.name != 'github-actions[bot]'
1717
steps:
1818
- uses: actions/checkout@v5
1919
with:
@@ -39,5 +39,7 @@ jobs:
3939
uses: stefanzweifel/git-auto-commit-action@v7
4040
if: steps.changelog-changes.outputs.has-changes == 'true'
4141
with:
42-
commit_message: "docs: update CHANGELOG.md"
43-
file_pattern: CHANGELOG.md
42+
commit_message: "docs: update CHANGELOG.md [skip ci]"
43+
file_pattern: CHANGELOG.md
44+
commit_user_name: github-actions[bot]
45+
commit_user_email: github-actions[bot]@users.noreply.github.com

0 commit comments

Comments
 (0)