Skip to content

Commit

Permalink
fix: move commit message into env variable (#683)
Browse files Browse the repository at this point in the history
Co-authored-by: Justin Shih <jushih@amazon.com>
  • Loading branch information
Jshhhh and Justin Shih committed Sep 29, 2022
1 parent 95979eb commit 7451bb8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,10 @@ jobs:
node-version: lts/*
- name: Get Version Number
id: get-version-number
env:
COMMIT_MESSAGE: ${{github.event.head_commit.message}}
run: |
version_number=$(echo "${{github.event.head_commit.message}}" | sed -n "s/.*\([0-9]\+\.[0-9]\+\.[0-9]\+\).*/\1/p")
version_number=$(echo "$COMMIT_MESSAGE" | sed -n "s/.*\([0-9]\+\.[0-9]\+\.[0-9]\+\).*/\1/p")
echo "::set-output name=version_number::$version_number"
- name: Get Release Description
run: npx -y changelog-parser CHANGELOG.md | jq -r '.versions[0].body' > release_description.md
Expand Down

0 comments on commit 7451bb8

Please sign in to comment.