Skip to content

Commit

Permalink
Merge branch 'gh-workflow' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
cars10 committed Sep 11, 2024
2 parents 59f7363 + 3b0ea01 commit dda670c
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,20 @@ jobs:
with:
path: github-artifacts

- name: Extract changelog for latest version
id: changelog
run: |
# Extract the changelog for the latest version and trim blank lines
CHANGELOG=$(awk '/^## [0-9]+\.[0-9]+\.[0-9]+/ {if (p) exit; p=1; next} p' CHANGELOG.md | sed '/^[[:space:]]*$/d')
# Output the extracted changelog for debugging
echo "$CHANGELOG"
# Save output
echo 'changelog<<EOF' >> $GITHUB_OUTPUT
echo "$CHANGELOG" >> $GITHUB_OUTPUT
echo 'EOF' >> $GITHUB_OUTPUT
- uses: ncipollo/release-action@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -191,6 +205,7 @@ jobs:
github-artifacts/windows_artifacts/elasticvue.exe
body: |
## Changelog
${{ steps.changelog.outputs.changelog }}
## Using elasticvue
### Desktop app
* [Windows .msi](https://github.com/cars10/elasticvue/releases/download/${{ github.ref_name }}/elasticvue_${{ steps.package-version.outputs.current-version }}_x64_en-US.msi)
Expand Down

0 comments on commit dda670c

Please sign in to comment.