From 7f305af4fca65e057060030a0e2fc30935b47820 Mon Sep 17 00:00:00 2001 From: oduortoni Date: Fri, 13 Feb 2026 12:30:25 +0300 Subject: [PATCH] fix(cicd): repetitive actions --- .github/workflows/clang-format.yml | 36 ------------------------------ 1 file changed, 36 deletions(-) delete mode 100644 .github/workflows/clang-format.yml diff --git a/.github/workflows/clang-format.yml b/.github/workflows/clang-format.yml deleted file mode 100644 index 1b3e3a7..0000000 --- a/.github/workflows/clang-format.yml +++ /dev/null @@ -1,36 +0,0 @@ -name: Auto-format C code - -on: - push: - branches: [ main ] - pull_request: - branches: [ main ] - -jobs: - clang-format: - runs-on: ubuntu-latest - - steps: - - name: Checkout repo - uses: actions/checkout@v3 - - - name: Set up Python (needed for pre-commit) - uses: actions/setup-python@v4 - with: - python-version: "3.x" - - - name: Install pre-commit - run: pip install pre-commit - - - name: Run clang-format via pre-commit - run: pre-commit run --all-files --show-diff-on-failure --color=always - - - name: Commit formatted files - run: | - git config user.name "github-actions[bot]" - git config user.email "github-actions[bot]@users.noreply.github.com" - git add -u - git commit -m "chore: auto-format with clang-format" || echo "No changes to commit" - git push - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}