Skip to content

Update github script #12

Update github script

Update github script #12

Workflow file for this run

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