Skip to content

Commit

Permalink
Fixed automatic release generation
Browse files Browse the repository at this point in the history
  • Loading branch information
thoukydides committed Aug 29, 2023
1 parent 2e12842 commit de8fa22
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/github-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ on:
description: 'Version tag'
required: true

env:
VERSION: ${{ github.event.inputs.version || github.ref_name }}

jobs:
release:
runs-on: ubuntu-latest
Expand All @@ -18,9 +21,9 @@ jobs:

- uses: CSchoel/release-notes-from-changelog@v1
with:
begin-pattern: '/^## \\[v${RELEASE_VERSION}\\]/'
link-pattern: '^\\[v${RELEASE_VERSION}\\]:'
version: "${{ github.event.inputs.version }}"
begin-pattern: '/^## \\[${RELEASE_VERSION}\\]/'
link-pattern: '^\\[${RELEASE_VERSION}\\]:'
version: "${VERSION}"

- name: Create Release using GitHub CLI
env:
Expand All @@ -30,4 +33,4 @@ jobs:
-d
-F RELEASE.md
-t "Version $RELEASE_VERSION"
${GITHUB_REF#refs/*/}
$VERSION

0 comments on commit de8fa22

Please sign in to comment.