Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Develop #52

Merged
merged 12 commits into from
Jul 5, 2023
38 changes: 26 additions & 12 deletions .github/workflows/update-changelog.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 protected]
# defaults to author of the commit that triggered the run
commit_author: Frieda Theodor Automatisierungs-Bot <[email protected]>
- 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 protected]
# # defaults to author of the commit that triggered the run
# commit_author: Frieda Theodor Automatisierungs-Bot <[email protected]>