|
| 1 | +name: Changelog |
| 2 | + |
| 3 | +on: |
| 4 | + push: |
| 5 | + paths: |
| 6 | + - 'package.json' |
| 7 | + |
| 8 | +jobs: |
| 9 | + build: |
| 10 | + name: Auto generation |
| 11 | + runs-on: ubuntu-latest |
| 12 | + steps: |
| 13 | + - name: Check-out |
| 14 | + uses: actions/checkout@v2 |
| 15 | + |
| 16 | + - name: Get last released tag |
| 17 | + id: last_version |
| 18 | + uses: InsonusK/get-latest-release@v1.0.1 |
| 19 | + with: |
| 20 | + myToken: ${{ secrets.GITHUB_TOKEN }} |
| 21 | + exclude_types: draft|prerelease |
| 22 | + view_top: 1 |
| 23 | + |
| 24 | + - name: Get new version |
| 25 | + id: future_version |
| 26 | + uses: Saionaro/extract-package-version@v1.0.6 |
| 27 | + |
| 28 | + - name: Generate changelog |
| 29 | + uses: docker://ferrarimarco/github-changelog-generator |
| 30 | + with: |
| 31 | + args: > |
| 32 | + -t ${{ secrets.GITHUB_TOKEN }} |
| 33 | + --user nextcloud |
| 34 | + --project nextcloud-vue |
| 35 | + --no-issues |
| 36 | + --no-issues-wo-labels |
| 37 | + --max-issues 0 |
| 38 | + --exclude-labels "duplicate,question,invalid,wontfix,dependencies" |
| 39 | + --since-tag ${{ steps.last_version.outputs.tag_name }} |
| 40 | + --future-release v${{ steps.future_version.outputs.version }} |
| 41 | + --breaking-label "## Breaking changes" |
| 42 | + --enhancement-label "## Enhancements" |
| 43 | + --bugs-label "## Fixed bugs" |
| 44 | + --deprecated-label "## Deprecated" |
| 45 | + --removed-label "## Removed" |
| 46 | + --security-label "## Security fixes" |
| 47 | + --issues-label "## Closed issues" |
| 48 | + --pr-label "## Closed pull requests" |
| 49 | +
|
| 50 | + - name: Print changelog to console |
| 51 | + run: cat CHANGELOG.md |
| 52 | + |
| 53 | + - name: Upload changelog |
| 54 | + uses: actions/upload-artifact@v2 |
| 55 | + with: |
| 56 | + name: Changelog |
| 57 | + path: CHANGELOG.md |
0 commit comments