Skip to content

Commit e25c617

Browse files
committed
chore(ci): how to skip job?! [skip ci]
Signed-off-by: Charlike Mike Reagent <[email protected]>
1 parent d60ee92 commit e25c617

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

.github/workflows/nodejs.yml

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ on:
1010

1111
jobs:
1212
test:
13+
if: "!contains(toJson(github.event.commits), '[skip ci]')"
1314
env:
1415
CI: true
1516
CODECOV_TOKEN: ${{secrets.CODECOV_TOKEN}}
@@ -20,9 +21,9 @@ jobs:
2021
runs-on: ${{ matrix.os }}
2122
steps:
2223
- uses: actions/checkout@v1
23-
if: contains(toJson(github.event.commits), '[skip ci]') == false
24+
# if: contains(toJson(github.event.commits), '[skip ci]') == false
2425
- uses: actions/cache@v1
25-
if: contains(toJson(github.event.commits), '[skip ci]') == false
26+
# if: contains(toJson(github.event.commits), '[skip ci]') == false
2627
id: nodejs-cache
2728
name: Cache node modules
2829
with:
@@ -38,19 +39,19 @@ jobs:
3839
# node: ${{ matrix.node }}
3940

4041
- name: Dump GitHub context
41-
if: contains(toJson(github.event.commits), '[skip ci]') == false
42+
# if: contains(toJson(github.event.commits), '[skip ci]') == false
4243
env:
4344
GITHUB_CONTEXT: ${{ toJson(github) }}
4445
run: echo "$GITHUB_CONTEXT"
4546
- name: Installing dependencies
46-
if: contains(toJson(github.event.commits), '[skip ci]') == false && steps.nodejs-cache.outputs.cache-hit != 'true'
47+
if: steps.nodejs-cache.outputs.cache-hit != 'true'
4748
run: yarn --frozen-lockfile
4849
- name: Linting & Format codebase with ESLint & Prettier
49-
if: contains(toJson(github.event.commits), '[skip ci]') == false
50+
# if: contains(toJson(github.event.commits), '[skip ci]') == false
5051
run: yarn lint && yarn fmt
5152
- name: Testing
52-
if: contains(toJson(github.event.commits), '[skip ci]') == false
53+
# if: contains(toJson(github.event.commits), '[skip ci]') == false
5354
run: yarn test:ci
5455
- name: Sending test coverage to CodeCov
55-
if: contains(toJson(github.event.commits), '[skip ci]') == false && matrix.os == 'ubuntu-latest' && matrix.node == '12.x'
56+
if: matrix.os == 'ubuntu-latest' && matrix.node == '12.x'
5657
run: echo ${{ matrix.node }} && bash <(curl -s https://codecov.io/bash)

0 commit comments

Comments
 (0)