Skip to content

Commit

Permalink
add workflow dispatch to release
Browse files Browse the repository at this point in the history
debug echos

fix workflow again

another fix
  • Loading branch information
carloskiki committed Aug 1, 2024
1 parent a955b1f commit 158eac8
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/releases.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ on:
push:
tags:
- "v*.*.*"
workflow_dispatch:

jobs:
build:
Expand All @@ -14,11 +15,11 @@ jobs:
- name: Extract version from tag
run: |
VERSION=$(echo ${GITHUB_REF} | sed 's/refs\/tags\///')
echo "VERSION={$VERSION#v}" >> $GITHUB_ENV
echo "VERSION=${VERSION#v}" >> $GITHUB_ENV
- name: Get Changelog
run: |
changelog=$(grep -A 1000 "^## \[$VERSION\]" CHANGELOG.md | sed '1d;/^## \[/,$d')
echo "RELEASE_NOTES=$changelog" >> $GITHUB_ENV
changelog='$(grep -A 1000 "^## \[$VERSION\]" CHANGELOG.md | sed '1d;/^## \[/,$d')'
echo "RELEASE_NOTES=\"$changelog\"" >> $GITHUB_ENV
- name: Release
uses: softprops/action-gh-release@v2
with:
Expand Down

0 comments on commit 158eac8

Please sign in to comment.