Browse Source

workflow: Ignore commits with [skip ci] or [ci skip]

rdb 5 years ago
parent
commit
307a74deff
1 changed files with 2 additions and 0 deletions
  1. 2 0
      .github/workflows/ci.yml

+ 2 - 0
.github/workflows/ci.yml

@@ -4,6 +4,7 @@ on: [push, pull_request]
 jobs:
 jobs:
   cmake:
   cmake:
     name: CMake Buildsystem
     name: CMake Buildsystem
+    if: "!contains(github.event.head_commit.message, '[skip ci]') && !contains(github.event.head_commit.message, '[ci skip]')"
 
 
     strategy:
     strategy:
       fail-fast: false
       fail-fast: false
@@ -326,6 +327,7 @@ jobs:
         bash <(curl -s https://codecov.io/bash) -y ../.github/codecov.yml
         bash <(curl -s https://codecov.io/bash) -y ../.github/codecov.yml
 
 
   makepanda:
   makepanda:
+    if: "!contains(github.event.head_commit.message, '[skip ci]') && !contains(github.event.head_commit.message, '[ci skip]')"
     strategy:
     strategy:
       matrix:
       matrix:
         os: [ubuntu-16.04, windows-2016, macOS-latest]
         os: [ubuntu-16.04, windows-2016, macOS-latest]