From 9a57445eec966e70d3f891a11bd719f7a8f53826 Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Fri, 27 Nov 2020 21:37:41 +0000 Subject: [PATCH] Allow for skipping CI [ci skip] --- .github/workflows/ci.yml | 10 ++++++++++ .github/workflows/deploy.yml | 2 ++ 2 files changed, 12 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d054031..e8f1df2 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -12,6 +12,8 @@ jobs: name: Test Drupal site installation + if: "!contains(github.event.head_commit.message, '[ci skip]')" + steps: - name: Checkout code uses: actions/checkout@a81bbbf @@ -62,6 +64,8 @@ jobs: runs-on: ubuntu-latest + if: "!contains(github.event.head_commit.message, '[ci skip]')" + strategy: matrix: theme-path: @@ -93,6 +97,8 @@ jobs: name: "Run ${{ matrix.test-types }} tests" + if: "!contains(github.event.head_commit.message, '[ci skip]')" + strategy: matrix: test-types: @@ -140,6 +146,8 @@ jobs: name: "Run coding standards checks" + if: "!contains(github.event.head_commit.message, '[ci skip]')" + steps: - name: Checkout code uses: actions/checkout@a81bbbf @@ -172,6 +180,8 @@ jobs: name: Static analysis with PHPStan + if: "!contains(github.event.head_commit.message, '[ci skip]')" + steps: - name: Checkout code uses: actions/checkout@a81bbbf diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 84b39e1..947f3ab 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -13,6 +13,8 @@ jobs: name: Deploy via Ansible + if: "!contains(github.event.head_commit.message, '[ci skip]')" + env: ANSIBLE_FORCE_COLOR: 1 ANSIBLE_HOST_KEY_CHECKING: no