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: