Extract latest changelog entry and attach it to draft

This commit is contained in:
El RIDO
2023-09-18 20:50:14 +02:00
parent 73c13af10d
commit ad50950b3c
2 changed files with 341 additions and 292 deletions
+17 -1
View File
@@ -1,10 +1,26 @@
name: Release New Version
name: Draft Release
on:
push:
tags: '[0-9]+.[0-9]?[0-9]?[0-9]?.?[0-9]+'
jobs:
draft:
runs-on: ubuntu-latest
steps:
- name: Fetch changelog from tag
uses: actions/checkout@v3
with:
sparse-checkout: CHANGELOG.md
sparse-checkout-cone-mode: false
- name: Extract latest changelog entry and attach it to draft
uses: taiki-e/create-gh-release-action@v1
with:
changelog: CHANGELOG.md
draft: true
token: ${{ secrets.GITHUB_TOKEN }}
release:
outputs:
hashes: ${{ steps.hash.outputs.hashes }}