From 7e3bed2bcfcf739fe6c443c81511f1420edd6b92 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20=C4=8Ciha=C5=99?= Date: Sun, 3 Nov 2024 09:50:50 +0100 Subject: [PATCH] chore: Sync with WeblateOrg/meta --- .github/workflows/pre-commit.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/pre-commit.yml b/.github/workflows/pre-commit.yml index 8f10906..f7ab830 100644 --- a/.github/workflows/pre-commit.yml +++ b/.github/workflows/pre-commit.yml @@ -35,18 +35,18 @@ jobs: id: pep735 run: | if grep -q dependency-groups pyproject.toml ; then - echo "found=true" >> $GITHUB_OUTPUT + echo "found=1" >> $GITHUB_OUTPUT else - echo "found=false" >> $GITHUB_OUTPUT + echo "found=0" >> $GITHUB_OUTPUT fi - name: pre-commit - if: ${{ steps.pep735.outputs.found }} + if: ${{ steps.pep735.outputs.found == 1 }} run: uv run --only-group pre-commit pre-commit run --all env: RUFF_OUTPUT_FORMAT: github REUSE_OUTPUT_FORMAT: github - name: Install dependencies - if: ${{ ! steps.pep735.outputs.found }} + if: ${{ steps.pep735.outputs.found == 0 }} run: | if [ -f requirements-lint.txt ] ; then uv pip install --system -r requirements-lint.txt @@ -54,7 +54,7 @@ jobs: uv pip install --system $(sed -n 's/.*"\(pre-commit==\([^"]*\)\)".*/\1/p' pyproject.toml) fi - name: pre-commit - if: ${{ ! steps.pep735.outputs.found }} + if: ${{ steps.pep735.outputs.found == 0 }} run: pre-commit run --all env: RUFF_OUTPUT_FORMAT: github