diff --git a/.github/workflows/update-changelog.yml b/.github/workflows/update-changelog.yml index ea6eec7..4f9edad 100644 --- a/.github/workflows/update-changelog.yml +++ b/.github/workflows/update-changelog.yml @@ -33,18 +33,32 @@ jobs: release-notes: ${{ github.event.release.body }} latest-version: ${{ github.event.release.tag_name }} - - name: Commit updated CHANGELOG - uses: stefanzweifel/git-auto-commit-action@v4 + - uses: EndBug/add-and-commit@v9 with: - branch: ${{ github.event.release.target_commitish }} - commit_message: Update CHANGELOG - file_pattern: CHANGELOG.md + add: 'CHANGELOG.md' + message: Update changelog to ${{ github.event.release.tag_name }} + # Whether to push the commit and, if any, its tags to the repo. It can also be used to set the git push arguments (see the paragraph below for more info) + # Default: true + push: false - # Optional commit user and author settings - # defaults to "github-actions[bot]" - commit_user_name: figuren-theater-bot - # defaults to "41898282+github-actions[bot]@users.noreply.github.com" - commit_user_email: email-roboter@figuren.theater - # defaults to author of the commit that triggered the run - commit_author: Frieda Theodor Automatisierungs-Bot + - name: Push to protected branch + uses: CasperWA/push-protected@v2 + with: + token: ${{ secrets.BOT_TOKEN }} + branch: ${{ github.event.release.target_commitish }} + unprotect_reviews: true + # - name: Commit updated CHANGELOG +# uses: stefanzweifel/git-auto-commit-action@v4 +# with: +# branch: ${{ github.event.release.target_commitish }} +# commit_message: Update CHANGELOG +# file_pattern: CHANGELOG.md +# +# # Optional commit user and author settings +# # defaults to "github-actions[bot]" +# commit_user_name: figuren-theater-bot +# # defaults to "41898282+github-actions[bot]@users.noreply.github.com" +# commit_user_email: email-roboter@figuren.theater +# # defaults to author of the commit that triggered the run +# commit_author: Frieda Theodor Automatisierungs-Bot