Skip to content

Commit

Permalink
feat: add update changelog workflow (#331)
Browse files Browse the repository at this point in the history
  • Loading branch information
ReenigneArcher authored May 20, 2024
1 parent bdfb79a commit 1e3278b
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/global-replicator.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ jobs:
.github/workflows/codeql.yml,
.github/workflows/issues.yml,
.github/workflows/issues-stale.yml,
.github/workflows/update-changelog.yml,
.github/workflows/yaml-lint.yml
commit_message: 'chore: update global workflows'
repos_to_ignore: ''
Expand Down
31 changes: 31 additions & 0 deletions .github/workflows/update-changelog.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
---
# This action is centrally managed in https://github.com/<organization>/.github/
# Don't make changes to this file in this repo as they will be overwritten with changes made to the same file in
# the above-mentioned repo.

# Update changelog on release events.

name: Update changelog

on:
release:
types: [created, edited, deleted]
workflow_dispatch:

concurrency:
group: "${{ github.workflow }}"
cancel-in-progress: true

jobs:
update-changelog:
if: >-
github.event_name == 'workflow_dispatch' ||
(!github.event.release.prerelease && !github.event.release.draft)
runs-on: ubuntu-latest
steps:
- name: Update Changelog
uses: LizardByte/update-changelog-action@v2024.520.183314
with:
changelogBranch: changelog
changelogFile: CHANGELOG.md
token: ${{ secrets.GH_BOT_TOKEN }}

0 comments on commit 1e3278b

Please sign in to comment.