Let's try this thingie
This commit is contained in:
parent
4ac992e425
commit
6a03164364
1 changed files with 12 additions and 10 deletions
22
.github/workflows/build.yaml
vendored
22
.github/workflows/build.yaml
vendored
|
@ -2,6 +2,8 @@ name: Node CI
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
|
paths-ignore:
|
||||||
|
- 'README.md'
|
||||||
branches:
|
branches:
|
||||||
- dev
|
- dev
|
||||||
|
|
||||||
|
@ -16,17 +18,17 @@ jobs:
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v1
|
- uses: actions/checkout@v1
|
||||||
- name: Should this run?
|
# - name: Should this run?
|
||||||
run: |
|
# run: |
|
||||||
COUNT=$(git diff --name-only HEAD~1 | wc -l)
|
# COUNT=$(git diff --name-only HEAD~1 | wc -l)
|
||||||
if [ $COUNT = 1 ]; then
|
# if [ $COUNT = 1 ]; then
|
||||||
ISREADME=$( (git diff --name-only HEAD~1 | grep README) || printf false )
|
# ISREADME=$( (git diff --name-only HEAD~1 | grep README) || printf false )
|
||||||
fi
|
# fi
|
||||||
|
|
||||||
if [ $ISREADME != 'false' ]; then
|
# if [ $ISREADME != 'false' ]; then
|
||||||
echo 'Only the README has changed, skipping build.'
|
# echo 'Only the README has changed, skipping build.'
|
||||||
exit 66
|
# exit 66
|
||||||
fi
|
# fi
|
||||||
- name: Use Node.js ${{ matrix.node-version }}
|
- name: Use Node.js ${{ matrix.node-version }}
|
||||||
uses: actions/setup-node@v1
|
uses: actions/setup-node@v1
|
||||||
with:
|
with:
|
||||||
|
|
Loading…
Reference in a new issue