mirror of
https://github.com/prymitive/karma
synced 2026-08-17 11:27:01 +00:00
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:
Executable
+16
@@ -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
|
||||
Reference in New Issue
Block a user