ci: ability to skip any workflow

This commit is contained in:
alexey.lysiuk 2021-08-05 10:10:51 +03:00
parent 8b2ca77ba2
commit a00601f651
3 changed files with 6 additions and 5 deletions

View file

@ -4,7 +4,7 @@ on: [push, pull_request]
jobs:
build:
if: "!contains(github.event.head_commit.message, '[skip ci]')"
if: "!contains(github.event.head_commit.message, '[skip build]')"
name: ${{ matrix.config.name }}
runs-on: "macos-10.15"
strategy:

View file

@ -1,9 +1,10 @@
name: Lint
name: Lint Code
on: [push, pull_request]
jobs:
linter:
lint:
if: "!contains(github.event.head_commit.message, '[skip lint]')"
runs-on: ubuntu-20.04
steps:
- name: Checkout

View file

@ -3,8 +3,8 @@ name: Test Libraries
on: [push, pull_request]
jobs:
build:
if: "!contains(github.event.head_commit.message, '[skip ci]')"
test:
if: "!contains(github.event.head_commit.message, '[skip test]')"
runs-on: "macos-10.15"
steps:
- uses: actions/checkout@v1