From eb275f98aca59d7577c7e110fdf3f3c2eb860530 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20M=C2=AA=20Fern=C3=A1ndez?= Date: Wed, 19 Jun 2024 19:44:19 +0200 Subject: [PATCH] Trying to ease the validations --- .github/workflows/pre-commit.yml | 4 +++- .github/workflows/schemas-doc-generator.yml | 2 ++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/pre-commit.yml b/.github/workflows/pre-commit.yml index e3396a7d..a974dca7 100644 --- a/.github/workflows/pre-commit.yml +++ b/.github/workflows/pre-commit.yml @@ -43,7 +43,7 @@ jobs: path: .mypy_cache/${{ matrix.python-version }} key: mypy-${{ matrix.python-version }} - name: 'pre-commit' - uses: pre-commit/action@v3.0.0 + uses: pre-commit/action@v3.0.1 # if: ${{ matrix.python-version != '3.6' }} with: extra_args: --all -c .pre-commit-config.yaml @@ -70,6 +70,8 @@ jobs: path: constraints-${{ matrix.python-version }}.txt pull_request_changes: + # Do this only when it is not a pull request validation + if: github.event_name != 'pull_request' runs-on: ubuntu-latest name: Pull request with the newly generated contents needs: diff --git a/.github/workflows/schemas-doc-generator.yml b/.github/workflows/schemas-doc-generator.yml index b4ec8ebe..956031ab 100644 --- a/.github/workflows/schemas-doc-generator.yml +++ b/.github/workflows/schemas-doc-generator.yml @@ -15,6 +15,8 @@ jobs: extra_args: --all -c .pre-commit-config.yaml jsonschema_dir_validate update_docs: + # Do this only when it is not a pull request validation + if: github.event_name != 'pull_request' runs-on: ubuntu-latest name: Update documentation if all worked properly needs: