Let's try this thingie

This commit is contained in:
snobu 2019-10-01 15:17:31 +03:00
parent 4ac992e425
commit 6a03164364

View file

@ -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: