Update github script #12
Workflow file for this run
This file contains hidden or 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: Create Release | |
| on: | |
| push: | |
| tags: | |
| - 'v*' | |
| permissions: | |
| contents: write | |
| issues: read | |
| jobs: | |
| release: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - name: Generate changelog from issues | |
| id: changelog | |
| uses: heinrichreimer/action-github-changelog-generator@v2.3 | |
| with: | |
| token: ${{ secrets.GITHUB_TOKEN }} | |
| issues: true | |
| pullRequests: false | |
| onlyLastTag: true | |
| excludeLabels: 'duplicate,question,invalid,wontfix' | |
| configureSections: '{"features": {"prefix": "**New Features:**", "labels": ["feature", "auto feature"]}, "enhancements": {"prefix": "**Enhancements:**", "labels": ["enhancement", "auto enhancement"]}, "bugfixes": {"prefix": "**Fixed Bugs:**", "labels": ["bug", "auto bug"]}}' | |
| output: CHANGELOG.md | |
| - name: Show generated changelog | |
| run: cat CHANGELOG.md | |
| - name: Create GitHub release | |
| uses: softprops/action-gh-release@v1 | |
| with: | |
| body_path: CHANGELOG.md | |
| draft: true | |
| prerelease: false |