Skip to content

Commit

Permalink
feat: add GitHub Actions workflow for automatic changelog generation
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisoprea committed Nov 16, 2024
1 parent cf56cd4 commit 2166b6f
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/update-changelog.yml
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

0 comments on commit 2166b6f

Please sign in to comment.