Skip to content

Commit

Permalink
feat: add changelog actions
Browse files Browse the repository at this point in the history
This action generates a changelog, and does automated releases and versioning
  • Loading branch information
Vyvy-vi committed Aug 8, 2021
1 parent 7aaccb7 commit 86df3f6
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: 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 }}

0 comments on commit 86df3f6

Please sign in to comment.