Files
karma/scripts/percy-skip-deps.sh
Łukasz Mierzwa 0227bfdcbb 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
2020-04-02 17:22:39 +01:00

17 lines
290 B
Bash
Executable File

#!/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