Skip to content

Commit

Permalink
Extract notes for release
Browse files Browse the repository at this point in the history
  • Loading branch information
dotboris committed Oct 8, 2023
1 parent efba5d2 commit 97e05b3
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,13 +48,22 @@ jobs:
VERSION: ${{ needs.ci.outputs.version }}
steps:
- uses: actions/checkout@v4

- uses: sean0x42/markdown-extract@v2
id: extract-notes
with:
file: CHANGELOG.md
pattern: ${{ env.VERSION }}
no-print-matched-heading: 'true'

- uses: actions/download-artifact@v3
id: download
with:
name: prod_guard-${{ env.VERSION }}.zip
- run: ls -lhR

- name: Create Release
env:
GH_TOKEN: ${{ github.token }}
run: gh release create "v$VERSION" "prod_guard-$VERSION.zip"
NOTES: ${{ steps.extract-notes.outputs.markdown }}
run: gh release create --notes "$NOTES" "v$VERSION" "prod_guard-$VERSION.zip"

0 comments on commit 97e05b3

Please sign in to comment.