From 56acbfd06c8ad0ac10434a2b40561ddd6101917d Mon Sep 17 00:00:00 2001 From: Simran Spiller Date: Mon, 12 Oct 2020 17:14:12 +0200 Subject: [PATCH] Skip CI if message of head commit contains [skip ci] Note: github.event.head_commit.message is potentially not available in on: pull_request payload. May need to find an alternative when this is added as trigger. --- .github/workflows/ci.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c27a72ff7..f68c7c77a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -47,6 +47,8 @@ jobs: runs-on: ubuntu-latest container: image: olivevideoeditor/ci-olive:${{ matrix.vfx-cy }}.${{ matrix.ci-common-version }} + if: >- + !contains(github.event.head_commit.message, '[skip ci]') steps: - name: Checkout Source Code @@ -129,6 +131,8 @@ jobs: ${{ matrix.build-type }}, ${{ matrix.cmake-gen }}> runs-on: ${{ matrix.os }} + if: >- + !contains(github.event.head_commit.message, '[skip ci]') steps: - name: Checkout Source Code @@ -298,6 +302,8 @@ jobs: ${{ matrix.build-type }}, ${{ matrix.cmake-gen }}> runs-on: ${{ matrix.os }} + if: >- + !contains(github.event.head_commit.message, '[skip ci]') steps: - name: Checkout Source Code