From 942e6ed59abc665df79d454bb5b69fe306a11ae6 Mon Sep 17 00:00:00 2001 From: 0d0 <0d0acre@esiliati.org> Date: Tue, 25 Feb 2025 13:35:47 +0100 Subject: [PATCH] Add package-lock to deps check also --- .forgejo/workflows/dependency_check.yaml | 2 +- scripts/configure.sh | 9 ++------- 2 files changed, 3 insertions(+), 8 deletions(-) diff --git a/.forgejo/workflows/dependency_check.yaml b/.forgejo/workflows/dependency_check.yaml index 6d48c81..08ad0f3 100644 --- a/.forgejo/workflows/dependency_check.yaml +++ b/.forgejo/workflows/dependency_check.yaml @@ -26,7 +26,7 @@ jobs: npm install git config --global user.name "forgejo-bot" git config --global user.email "bot@pweapon.org" - git add package.json || exit 0 + git add package* || exit 0 git commit -m "chore: update minor dependencies" git push origin HEAD:${GITHUB_REF#refs/heads/} env: diff --git a/scripts/configure.sh b/scripts/configure.sh index a83e026..c6af0eb 100755 --- a/scripts/configure.sh +++ b/scripts/configure.sh @@ -1,11 +1,6 @@ #!/bin/bash -# -# An example hook script to verify what is about to be committed. -# Called by "git commit" with no arguments. The hook should -# exit with non-zero status after issuing an appropriate message if -# it wants to stop the commit. -# -# To enable this hook, rename this file to "pre-commit". + +## Configures pre commit hook for the current repos set -e