Files
codecov-action/hooks/pre-commit
2024-11-19 15:39:28 -05:00

14 lines
217 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
git add CHANGELOG.md