From 018aed276778cc001921fe0598cc0f19d93ffc90 Mon Sep 17 00:00:00 2001 From: Takeru Sato Date: Wed, 3 Jan 2024 22:57:43 +0900 Subject: [PATCH] ci(ci): prevent jobs if the trigger is release commit --- .github/workflows/main.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index a676915..86656b2 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -9,7 +9,7 @@ jobs: build_and_test: name: Test and Build - ${{ matrix.version }} runs-on: ubuntu-latest - if: ${{ ! startsWith(github.event.head_commit.message, 'chore(release):') }} + if: ${{ ! startsWith(github.event.commits[0].message, 'chore(release):') }} strategy: fail-fast: false matrix: @@ -44,7 +44,7 @@ jobs: lint: name: Lint runs-on: ubuntu-latest - if: ${{ ! startsWith(github.event.head_commit.message, 'chore(release):') }} + if: ${{ ! startsWith(github.event.commits[0].message, 'chore(release):') }} steps: - uses: actions/checkout@v4 - name: Install toolchain and components