Skip to content

Commit

Permalink
cicd: update github actions workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
dakota-marshall committed Aug 24, 2023
1 parent 806ef69 commit f7b12cc
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ jobs:
contents: write
steps:
- uses: actions/checkout@v3
- uses: Helmisek/conventional-changelog-generator@v1.0.6-release
with:
token: ${{ secrets.GITHUB_TOKEN }}
- name: Set Changelog Message
run: |
echo "CHANGELOG=$(python get_release_msg.py)" >> $GITHUB_ENV
- uses: ncipollo/release-action@v1
with:
body: ${{ changelog }}
body: ${{ CHANGELOG }}
12 changes: 12 additions & 0 deletions get_release_msg.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#!/usr/bin/env python3
import re

regex = r"## \[\d+\.\d+\.\d+\][\s\S]*?(?=(^#{2} \[))"

# Open CHANGELOG.md
with open("CHANGELOG.md", "r") as file:
test_str = file.read()

match = re.search(regex, test_str, re.MULTILINE)

print(match.group(0))

0 comments on commit f7b12cc

Please sign in to comment.