diff --git a/.github/workflows/changelog.yml b/.github/workflows/changelog.yml index e676702..413fbde 100644 --- a/.github/workflows/changelog.yml +++ b/.github/workflows/changelog.yml @@ -1,14 +1,13 @@ name: changelog permissions: contents: write - pull_request: write on: push: - tags: - - '[v]?[0-9]+.[0-9]+.[0-9]+' - workflow_dispatch: + branches: + - main + workflow_dispatch: jobs: changelog: @@ -16,6 +15,7 @@ jobs: runs-on: ubuntu-latest permissions: contents: write + pull-requests: write steps: - name: Checkout uses: actions/checkout@v4 @@ -37,7 +37,7 @@ jobs: id: extract_branch - name: Create PR - uses: peter-evans/create-pull-request@v3 + uses: peter-evans/create-pull-request@v7 with: token: ${{ secrets.GITHUB_TOKEN }} commit-message: 'chore(changelog): update changelog (auto)' @@ -45,3 +45,4 @@ jobs: body: 'This PR was created by a GitHub Action to update the changelog.' branch: bot/auto-changelog-update base: main + add-paths: CHANGELOG.md