mirror of
https://github.com/PrivateBin/PrivateBin.git
synced 2026-04-18 21:48:24 -04:00
Extract latest changelog entry and attach it to draft
This commit is contained in:
@@ -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 }}
|
||||
|
||||
Reference in New Issue
Block a user