From ef00d1add102b0f1cd65db1c397aa93e5dc214e0 Mon Sep 17 00:00:00 2001 From: derberg Date: Thu, 24 Nov 2022 15:17:07 +0100 Subject: [PATCH] ci: skip release early --- .github/workflows/if-nodejs-release.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/if-nodejs-release.yml b/.github/workflows/if-nodejs-release.yml index 948edb89..4bf68754 100644 --- a/.github/workflows/if-nodejs-release.yml +++ b/.github/workflows/if-nodejs-release.yml @@ -19,6 +19,10 @@ on: jobs: test-nodejs: + # We just check the message of first commit as there is always just one commit because we squash into one before merging + # "commits" contains array of objects where one of the properties is commit "message" + # Release workflow will be skipped if release conventional commits are not used + if: ${{ !startsWith(fromJson('["fix:", "feat:", "fix!:", "feat!:"]'), github.event.push.commits[0].message) }} name: Test NodeJS release on ${{ matrix.os }} runs-on: ${{ matrix.os }} strategy: