Skip to content

Experimental: Set latest changelog tag to test value #2

Experimental: Set latest changelog tag to test value

Experimental: Set latest changelog tag to test value #2

Workflow file for this run

name: Release
on:
release:
types:
- created
jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Download artifacts
id: download-artifact
- uses: dawidd6/action-download-artifact@v7
with:
workflow: build.yml
commit: ${{ github.sha }}
# branch: main
event: release
skip_unpack: true
- name: Parse changelog
- uses: actions/checkout@v4
- uses: actions-ecosystem/action-regex-match@v2
id: regex-match
with:
text: CHANGELOG.md
regex: |
'## \['
${{ github.event.release.tag_name }}
'\].*\n\n((.|\n)*)(?:## \[[0-9]+.[0-9]+.[0-9]+\])'
flags: gm
- name: Release
- uses: softprops/action-gh-release@v2
with:
body: ${{ steps.regex-match.outputs.group1 }}
- uses: shogo82148/actions-upload-release-asset@v1
with:
upload_url: ${{ github.event.release.upload_url }}
asset_path: *.zip

Check failure on line 41 in .github/workflows/release.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/release.yml

Invalid workflow file

You have an error in your yaml syntax on line 41