chore(dev): Updated skip script
This commit is contained in:
parent
038588bf9c
commit
108d83b834
1 changed files with 17 additions and 9 deletions
|
@ -1,11 +1,19 @@
|
|||
#!/bin/bash
|
||||
if git diff HEAD^ HEAD --quiet ../freesewing.shared || git diff --quiet HEAD^ HEAD . ; then
|
||||
# We have local changes, go ahead and build
|
||||
echo "✅ - Changed detected; Let's build this thing"
|
||||
exit 1;
|
||||
else
|
||||
# No changes, do not waste time building this commit
|
||||
echo "🛑 - No changes detected; Let's just not"
|
||||
exit 0;
|
||||
fi
|
||||
check=( \
|
||||
"." \
|
||||
"../../markdown/dev" \
|
||||
"../freesewing.shared" \
|
||||
)
|
||||
build=0
|
||||
for d in ${check[@]}; do
|
||||
if `git diff HEAD^ HEAD --quiet $d`; then
|
||||
# We have changes, go ahead and build
|
||||
echo "✅ - Changed detected in $d, let's build this thing"
|
||||
exit 1;
|
||||
fi
|
||||
done
|
||||
|
||||
# No changes, do not waste time building this commit
|
||||
echo "🛑 - No changes detected; Let's just not"
|
||||
exit 0;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue