codecov-action/hooks/pre-commit
2024-11-19 12:35:34 -05:00

11 lines
195 B
Bash
Executable file

#!/usr/bin/env bash
set -e
cp src/scripts/dist/codecov.sh dist/codecov.sh
git add dist/codecov.sh
git diff --cached --name-only | if grep --quiet "src/version"
then
python changelog.py
fi