generated from dymensionxyz/rollapp
-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(ci): Update changelog workflow (#224)
- Loading branch information
1 parent
f691d4f
commit 87c2804
Showing
2 changed files
with
43 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
name: Auto Changelog Update | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
update_changelog: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout the repository | ||
uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 # Ensure all history is fetched | ||
|
||
- name: Setup Node.js (if using a Node.js tool for changelog generation) | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: '18' | ||
|
||
- name: Generate Changelog Update | ||
run: | | ||
# Example: Using conventional-changelog to update CHANGELOG.md | ||
npm install -g conventional-changelog-cli | ||
conventional-changelog -p angular -i CHANGELOG.md -s | ||
- name: Create or Update Pull Request | ||
id: cpr | ||
uses: peter-evans/create-pull-request@v4 | ||
with: | ||
commit-message: "Update CHANGELOG.md [skip ci]" | ||
title: "Automated Changelog Update [skip ci]" | ||
body: "Update the CHANGELOG.md with recent commits. [skip ci]" | ||
branch: auto-changelog-update-${{ github.run_number }} | ||
delete-branch: true | ||
branch-suffix: timestamp | ||
|
||
- name: Check if PR needs to be updated | ||
if: steps.cpr.outputs.pull-request-operation == 'updated' | ||
run: | | ||
echo "Changelog PR updated due to new commit to main." |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
CHANGELOG.md |