Skip to content

Commit

Permalink
Update changelog.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
jimbrig authored Feb 27, 2024
1 parent 420e587 commit ff41126
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/changelog.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Automate Changelog
on:
workflow_dispatch:
push:
branches:
- main
jobs:
changelog:
name: Generate changelog
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
token: ${{ secrets.GITHUB_TOKEN }}

- name: Generate a changelog
uses: orhun/git-cliff-action@v3
id: git-cliff
with:
config: ./.github/cliff.toml
args: --verbose
env:
OUTPUT: ./CHANGELOG.md

- name: Print the changelog
run: cat "${{ steps.git-cliff.outputs.changelog }}"

- name: Commit and Push Changes
uses: actions-js/push@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit ff41126

Please sign in to comment.