Merge pull request #283 from chizmw/changeset-release/main #4
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
name: Github Release | |
# yamllint disable-line rule:truthy | |
on: | |
push: | |
tags: | |
- v* | |
permissions: | |
contents: write | |
jobs: | |
create-release: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Get Changelog Entry | |
id: get-changelog-entry | |
uses: chizovation/[email protected] | |
- name: Show Change Info | |
shell: bash | |
# yamllint disable rule:line-length | |
run: | | |
cat <<'EOInfo' >> $GITHUB_STEP_SUMMARY | |
## Last Change Entry | |
```markdown | |
${{ steps.get-changelog-entry.outputs.last-change-entry-v }} | |
``` | |
EOInfo | |
- name: Release | |
uses: softprops/action-gh-release@v1 | |
# only run if we have a changelog entry | |
if: steps.get-changelog-entry.outputs.last-change-entry != '' | |
with: | |
body: ${{ steps.get-changelog-entry.outputs.last-change-entry }} | |
tag_name: ${{ steps.get-changelog-entry.outputs.last-change-version-v }} | |
name: ${{ steps.get-changelog-entry.outputs.last-change-version-v }} | |
draft: false | |
prerelease: false |