mirror of
https://github.com/status-im/actions-hugo.git
synced 2025-01-13 14:25:07 +00:00
ci: add is_skip [skip ci]
This commit is contained in:
parent
7160613349
commit
c0e9f57fdb
10
.github/workflows/test.yml
vendored
10
.github/workflows/test.yml
vendored
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user