From c1e645907f39499476243d1069286a567157d5df Mon Sep 17 00:00:00 2001 From: Al Ganiev Date: Sat, 22 Jan 2022 21:44:01 +1000 Subject: [PATCH] added proper changelog config --- .github/workflows/changelog.yml | 35 ++++++++++++++++++++++++--------- 1 file changed, 26 insertions(+), 9 deletions(-) diff --git a/.github/workflows/changelog.yml b/.github/workflows/changelog.yml index c8edd08..ec38797 100644 --- a/.github/workflows/changelog.yml +++ b/.github/workflows/changelog.yml @@ -1,13 +1,30 @@ name: Changelog -on: - release: - types: - - created + +on: push + jobs: - changelog: - runs-on: ubuntu-20.04 + generate_changelog: + runs-on: ubuntu-latest steps: - - name: "✏️ Generate release changelog" - uses: heinrichreimer/github-changelog-generator-action@v2.3 + - name: Generate change log + uses: heinrichreimer/github-changelog-generator-action@v2.1.1 with: - token: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file + token: ${{ secrets.GITHUB_TOKEN }} + headerLabel: "# Changelog" + breakingLabel: '### Breaking' + enhancementLabel: '### Enhancements' + stripGeneratorNotice: true + bugsLabel: '### Fixes' + issues: true + issuesWoLabels: true + pullRequests: true + prWoLabels: true + author: false + verbose: true + - name: "🖨️ Print changelog to console" + run: cat CHANGELOG.md + - name: "📤 Upload changelog" + uses: actions/upload-artifact@v1.0.0 + with: + name: "Changelog" + path: CHANGELOG.md \ No newline at end of file