[stable4] Make file list only sortable by one property at the time #130
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Changelog | |
on: | |
pull_request: | |
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 | |
view_top: 1 | |
- name: Get new version | |
id: future_version | |
uses: Saionaro/[email protected] | |
- name: Generate changelog between ${{ steps.last_version.outputs.tag_name }} and v${{ steps.future_version.outputs.version }} | |
uses: docker://ferrarimarco/github-changelog-generator | |
# If we have a version change | |
if: contains(steps.last_version.outputs.tag_name, steps.future_version.outputs.version) == false | |
with: | |
args: > | |
-t ${{ secrets.GITHUB_TOKEN }} | |
--user nextcloud-libraries | |
--project nextcloud-dialogs | |
--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 "### :boom: Breaking changes" | |
--enhancement-label "### :rocket: Enhancements" | |
--bugs-label "### :bug: 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 |