From aa3ee5441d30b956f9b4c6be0308d89d31e704f4 Mon Sep 17 00:00:00 2001 From: Roy Duineveld Date: Tue, 17 Sep 2024 16:17:55 +0200 Subject: [PATCH] Changelog fix --- .github/workflows/changelog.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/changelog.yml b/.github/workflows/changelog.yml index 161eadb..43351a6 100644 --- a/.github/workflows/changelog.yml +++ b/.github/workflows/changelog.yml @@ -1,6 +1,7 @@ name: "Update Changelog" on: + workflow_dispatch: release: types: [ published, edited, deleted ] @@ -13,6 +14,7 @@ jobs: uses: actions/checkout@v3 with: ref: ${{ github.event.release.target_commitish }} + token: ${{ secrets.RAPIDEZ_ACTIONS_ACCOUNT_PAT }} - name: Generate changelog uses: justbetter/generate-changelogs-action@main @@ -20,10 +22,11 @@ jobs: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: repository: ${{ github.repository }} + sha: ${{ github.head_ref || github.ref_name }} - name: Commit CHANGELOG uses: stefanzweifel/git-auto-commit-action@v4 with: branch: ${{ github.event.release.target_commitish }} commit_message: Update CHANGELOG - file_pattern: CHANGELOG.md \ No newline at end of file + file_pattern: CHANGELOG.md