From 3288c46682d780605d8417a5309e0a4d2d553fe8 Mon Sep 17 00:00:00 2001 From: MeenBna Date: Mon, 14 Oct 2024 14:31:44 +0200 Subject: [PATCH] Fixed CI pipeline by updating pre-commit hooks. --- .github/workflows/ci-cd-webhook.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.github/workflows/ci-cd-webhook.yml b/.github/workflows/ci-cd-webhook.yml index ddf40b0..93267a0 100644 --- a/.github/workflows/ci-cd-webhook.yml +++ b/.github/workflows/ci-cd-webhook.yml @@ -24,6 +24,16 @@ jobs: - name: Install dependencies run: pip install -r requirements.txt + - name: Update pre-commit hooks + run: | + source .venv/bin/activate + pre-commit autoupdate + git config --global user.name 'github-actions' + git config --global user.email 'github-actions@github.com' + git add .pre-commit-config.yaml + git commit -m "Update pre-commit hooks" || echo "No changes to commit" + git push origin HEAD || echo "No changes to push" + - name: Run pre-commit checks run: pre-commit run --all-files