Allow to skip the GitHub Actions

This commit is contained in:
Pig Fang 2019-12-07 23:54:06 +08:00
parent 18f3cb8571
commit 13d372411e

View File

@ -12,6 +12,7 @@ jobs:
twig:
name: Twig Linting
runs-on: ubuntu-latest
if: "!contains(github.event.head_commit.message, 'skip ci')"
steps:
- name: Checkout code
uses: actions/checkout@v1
@ -26,6 +27,7 @@ jobs:
php:
name: PHP ${{ matrix.php }} Tests
runs-on: ubuntu-latest
if: "!contains(github.event.head_commit.message, 'skip ci')"
strategy:
fail-fast: false
matrix:
@ -76,6 +78,7 @@ jobs:
lint:
name: Frontend Linting
runs-on: ubuntu-latest
if: "!contains(github.event.head_commit.message, 'skip ci')"
steps:
- name: Checkout code
uses: actions/checkout@v1
@ -88,6 +91,7 @@ jobs:
jest:
name: Frontend Tests
runs-on: ubuntu-latest
if: "!contains(github.event.head_commit.message, 'skip ci')"
steps:
- name: Checkout code
uses: actions/checkout@v1