fix(ci): don't run percy for some no-op PRs

Reduce percy snapshot usage by ignoring some PRs that update Go or NodeJS deps
This commit is contained in:
Łukasz Mierzwa
2020-04-02 17:22:39 +01:00
parent e9360d0612
commit 0227bfdcbb
2 changed files with 19 additions and 1 deletions
+16
View File
@@ -0,0 +1,16 @@
#!/usr/bin/env bash
set -o errexit
set -o pipefail
git log --no-merges --name-only --pretty=format: ${1}..${2} | grep -Ev '^$' | sort | uniq | while read FILE ; do
if [[ "${FILE}" =~ ^ui/src/.+ ]]; then
echo "[P] ${FILE}"
exit 1
else
echo "[ ] ${FILE}"
fi
done
exit 0