From cd506e2b83b2d7babf478d56a37220bfcf5e24db Mon Sep 17 00:00:00 2001 From: James Armes Date: Thu, 10 Oct 2024 17:46:32 -0400 Subject: [PATCH] ci: Fixed static commit message in release workflow. --- .github/workflows/release.yaml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index c2a9959..cbaed73 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -56,7 +56,7 @@ jobs: # Look for the last version number, expecting it to be in the format: # `#.#.#-.#` 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:.+(?\d+\.\d+\.\d+[\da-z.-]*) \(#\d+\)$/ const version = message.match(regex).groups.version console.log(version) @@ -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