From ff4112670c7e3a35b6665793b95978d3020abe3b Mon Sep 17 00:00:00 2001 From: Jimmy Briggs Date: Mon, 26 Feb 2024 21:23:36 -0500 Subject: [PATCH] Update changelog.yml --- .github/workflows/changelog.yml | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/.github/workflows/changelog.yml b/.github/workflows/changelog.yml index e69de29..fd646aa 100644 --- a/.github/workflows/changelog.yml +++ b/.github/workflows/changelog.yml @@ -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 }}