Skip to content

Commit

Permalink
ci: add is_skip [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
peaceiris committed Jun 19, 2020
1 parent 7160613 commit c0e9f57
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,18 @@ on:
jobs:
skipci:
runs-on: ubuntu-18.04
outputs:
is_skip: ${{ steps.is_skip.outputs.is_skip }}
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:
runs-on: ${{ matrix.os }}
if: contains(github.event.head_commit.message, '[skip ci]') == false
needs: skipci
if: ${{ ! needs.skipci.outputs.is_skip }}
strategy:
matrix:
os:
Expand Down

0 comments on commit c0e9f57

Please sign in to comment.