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: jobs:
build: build:
if: "!contains(github.event.head_commit.message, '[skip ci]')" if: "!contains(github.event.head_commit.message, '[skip build]')"
name: ${{ matrix.config.name }} name: ${{ matrix.config.name }}
runs-on: "macos-10.15" runs-on: "macos-10.15"
strategy: strategy:

View file

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

View file

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