From 86df3f67b6ccc8b7851d8e50f88c8d3ccd8fc341 Mon Sep 17 00:00:00 2001 From: Vyom Jain Date: Sun, 8 Aug 2021 01:34:42 +0530 Subject: [PATCH] feat: add changelog actions This action generates a changelog, and does automated releases and versioning --- .github/workflows/changelog.yml | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 .github/workflows/changelog.yml diff --git a/.github/workflows/changelog.yml b/.github/workflows/changelog.yml new file mode 100644 index 0000000..eb59e8b --- /dev/null +++ b/.github/workflows/changelog.yml @@ -0,0 +1,33 @@ +name: Changelog and Releases +on: + workflow_dispatch: + push: + branches: + - "feat/gh-actions" + +jobs: + changelog: + runs-on: ubuntu-latest + if: github.repository == 'Metafam/shepherd-bot' + + steps: + - uses: actions/checkout@v2 + + - name: Conventional Changelog Action + id: changelog + uses: TriPSs/conventional-changelog-action@v3 + with: + github-token: ${{ secrets.CHANGELOG_RELEASE }} + + version-file: './pyproject.toml' + output-file: 'CHANGELOG.md' + + - name: Create Release + uses: actions/create-release@v1 + if: ${{ steps.changelog.outputs.skipped == 'false' }} + env: + GITHUB_TOKEN: ${{ secrets.CHANGELOG_RELEASE }} + with: + tag_name: ${{ steps.changelog.outputs.tag }} + release_name: ${{ steps.changelog.outputs.tag }} + body: ${{ steps.changelog.outputs.clean_changelog }}