ci: add is_skip [skip ci]

This commit is contained in:
Shohei Ueda 2020-06-19 20:46:22 +09:00 committed by GitHub
parent 7160613349
commit c0e9f57fdb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 2 deletions

View File

@ -13,12 +13,18 @@ on:
jobs: jobs:
skipci: skipci:
runs-on: ubuntu-18.04 runs-on: ubuntu-18.04
outputs:
is_skip: ${{ steps.is_skip.outputs.is_skip }}
steps: steps:
- run: echo "[skip ci] ${{ contains(github.event.head_commit.message, '[skip ci]') }}" - name: Set is_skip
id: is_skip
run: echo "::set-output name=is_skip::${{ contains(github.event.head_commit.message, '[skip ci]') }}"
- run: echo "[skip ci] ${{ steps.is_skip.outputs.is_skip }}"
test: test:
runs-on: ${{ matrix.os }} runs-on: ${{ matrix.os }}
if: contains(github.event.head_commit.message, '[skip ci]') == false needs: skipci
if: ${{ ! needs.skipci.outputs.is_skip }}
strategy: strategy:
matrix: matrix:
os: os: