1
0
mirror of https://github.com/snobu/destreamer.git synced 2026-01-17 05:22:18 +00:00

Fix README commit filter

This commit is contained in:
snobu
2019-10-01 14:21:25 +03:00
parent b300f4a01f
commit 3c99225205

View File

@@ -19,8 +19,14 @@ jobs:
- 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 git diff --name-only HEAD~1 | grep README; fi if [ $COUNT = 1 ]; then
if [ $? = 0 ]; then echo 'Only the README has changed, skipping build.'; exit 66; fi ISREADME=$( (git diff --name-only HEAD~1 | grep README) || printf false )
fi
if [ $ISREADME != 'false' ]; then
echo 'Only the README has changed, skipping build.'
exit 66
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: