Skip to content

Commit

Permalink
ci, feat: automatically extract release message title
Browse files Browse the repository at this point in the history
  • Loading branch information
EagleoutIce committed Sep 15, 2023
1 parent d1e0bbc commit 1746c98
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ jobs:
run: |
msg="${{ github.event.head_commit.message }}"
step=$(echo "$msg" | sed -n 's/\[release:\(patch|minor|major\)].*/\1/p')
npm run release -- $step
title=$(echo "$msg" | sed -n 's/\[release:\(patch|minor|major\)] \(.*\)/\2/p')
npm run release -- $step --github.releaseName="${title}"
deploy-docker:
needs: [ release ]
Expand Down

0 comments on commit 1746c98

Please sign in to comment.