ci: fix Chore/add renovate (#35)

* ci: add Renovate for automated dependency updates

* fix github action version

* fix: prevent pre-push protect-main hook from hanging on stdin read
This commit is contained in:
2026-02-14 00:32:00 -06:00
committed by GitHub
parent 5684408d4e
commit d36ea98cf2
2 changed files with 6 additions and 7 deletions
+5 -6
View File
@@ -33,12 +33,11 @@ pre-push:
commands:
protect-main:
run: |
while read local_ref local_sha remote_ref remote_sha; do
if [ "$remote_ref" = "refs/heads/main" ]; then
echo "Direct push to main is not allowed. Use a pull request instead."
exit 1
fi
done
branch=$(git rev-parse --abbrev-ref HEAD)
if [ "$branch" = "main" ]; then
echo "Direct push to main is not allowed. Use a pull request instead."
exit 1
fi
skip:
- merge
- rebase