From d2c34a1436f310e8b6f4cb379528328da0f20847 Mon Sep 17 00:00:00 2001 From: behnazh Date: Fri, 29 Aug 2025 13:44:37 +1000 Subject: [PATCH] build: use head_commit object for checking the bump message --- .github/workflows/release.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 0d4a1dbe..c4e6a75e 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -12,7 +12,7 @@ permissions: jobs: check: - if: ${{ !startsWith(github.event.commits[0].message, 'bump:') }} + if: ${{ !startsWith(github.event.head_commit.message, 'bump:') }} uses: ./.github/workflows/_build.yaml permissions: contents: read @@ -77,7 +77,7 @@ jobs: # When triggered by the version bump commit, build the package and publish the release artifacts. build: - if: github.ref == 'refs/heads/release' && startsWith(github.event.commits[0].message, 'bump:') + if: github.ref == 'refs/heads/release' && startsWith(github.event.head_commit.message, 'bump:') uses: ./.github/workflows/_build.yaml permissions: contents: read