Skip to content

Commit

Permalink
Add changelog generator action
Browse files Browse the repository at this point in the history
Signed-off-by: John Molakvoæ (skjnldsv) <[email protected]>
  • Loading branch information
skjnldsv committed Apr 7, 2021
1 parent 696af91 commit 9110234
Showing 1 changed file with 57 additions and 0 deletions.
57 changes: 57 additions & 0 deletions .github/workflows/changelog-generate.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
name: Changelog

on:
push:
paths:
- 'package.json'

jobs:
build:
name: Auto generation
runs-on: ubuntu-latest
steps:
- name: Check-out
uses: actions/checkout@v2

- name: Get last released tag
id: last_version
uses: InsonusK/[email protected]
with:
myToken: ${{ secrets.GITHUB_TOKEN }}
exclude_types: draft|prerelease
view_top: 1

- name: Get new version
id: future_version
uses: Saionaro/[email protected]

- name: Generate changelog
uses: docker://ferrarimarco/github-changelog-generator
with:
args: >
-t ${{ secrets.GITHUB_TOKEN }}
--user nextcloud
--project nextcloud-vue
--no-issues
--no-issues-wo-labels
--max-issues 0
--exclude-labels "duplicate,question,invalid,wontfix,dependencies"
--since-tag ${{ steps.last_version.outputs.tag_name }}
--future-release v${{ steps.future_version.outputs.version }}
--breaking-label "## Breaking changes"
--enhancement-label "## Enhancements"
--bugs-label "## Fixed bugs"
--deprecated-label "## Deprecated"
--removed-label "## Removed"
--security-label "## Security fixes"
--issues-label "## Closed issues"
--pr-label "## Closed pull requests"
- name: Print changelog to console
run: cat CHANGELOG.md

- name: Upload changelog
uses: actions/upload-artifact@v2
with:
name: Changelog
path: CHANGELOG.md

0 comments on commit 9110234

Please sign in to comment.