Skip to content

Commit

Permalink
ci: Fixed static commit message in release workflow.
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesiarmes committed Oct 10, 2024
1 parent 2a14c3d commit cd506e2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ jobs:
# Look for the last version number, expecting it to be in the format:
# `#.#.#-<suffix>.#` where the suffix is optional.
script: |
const message = 'bump: version 0.1.0 → 0.1.1 (#1)'
const message = '${{ github.event.head_commit.message }}'
const regex = /^bump:.+(?<version>\d+\.\d+\.\d+[\da-z.-]*) \(#\d+\)$/
const version = message.match(regex).groups.version
console.log(version)
Expand All @@ -74,6 +74,8 @@ jobs:
--exclude='*.tar.gz' \
--exclude='release.md' \
--exclude='CODEOWNERS' \
--exclude='trivy.yaml' \
--exclude='*.env' \
-czf '${{ steps.module_name.outputs.name }}-${{ steps.version.outputs.result }}.tar.gz' \
.
- name: Get changelog entry
Expand Down

0 comments on commit cd506e2

Please sign in to comment.