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.
This commit is contained in:
Simran Spiller
2020-10-12 17:14:20 +02:00
parent 9657e945ea
commit 56acbfd06c
+6
View File
@@ -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