From d36ea98cf2e2564c7ffe937d67d737134d408667 Mon Sep 17 00:00:00 2001 From: Logan Jones Date: Sat, 14 Feb 2026 00:32:00 -0600 Subject: [PATCH] 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 --- .github/workflows/renovate.yml | 2 +- lefthook.yml | 11 +++++------ 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/.github/workflows/renovate.yml b/.github/workflows/renovate.yml index 9b57069..ebb02d1 100644 --- a/.github/workflows/renovate.yml +++ b/.github/workflows/renovate.yml @@ -21,7 +21,7 @@ jobs: - uses: actions/checkout@v4 - name: Run Renovate - uses: renovatebot/github-action@v42.1.0 + uses: renovatebot/github-action@v46.1.0 with: configurationFile: renovate.json5 token: ${{ secrets.RENOVATE_TOKEN }} diff --git a/lefthook.yml b/lefthook.yml index abb29e7..e507f16 100644 --- a/lefthook.yml +++ b/lefthook.yml @@ -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