generated from blade-ui-kit/blade-icons-template
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add GitHub Actions workflow for automatic changelog generation
- Loading branch information
1 parent
cf56cd4
commit 2166b6f
Showing
1 changed file
with
30 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,30 @@ | ||
name: Generate Changelog | ||
|
||
on: | ||
push: | ||
branches: [ main ] | ||
|
||
jobs: | ||
changelog: | ||
runs-on: ubuntu-latest | ||
name: Generate and Commit Changelog | ||
|
||
steps: | ||
- name: Checkout Repository | ||
uses: actions/checkout@v4 | ||
|
||
- name: Generate Changelog based on Conventional Commits | ||
uses: smichard/[email protected] | ||
with: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Set Git User Info | ||
run: | | ||
git config user.name 'GitHub Actions Bot' | ||
git config user.email '[email protected]' | ||
- name: Commit Changelog | ||
run: | | ||
git add CHANGELOG.md | ||
git commit -m "docs: :robot: changelog file generated" || echo "No changes to commit" | ||
git push |