From 84d2f3b2fd4e350646aceb2b21251e55665f6c8b 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:57:35 +0200 Subject: [PATCH] Skip GitHub workflow runs on specific conditions --- .github/workflows/pre-commit.yml | 2 ++ .github/workflows/schemas-doc-generator.yml | 4 +++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/pre-commit.yml b/.github/workflows/pre-commit.yml index a974dca7..c5cfd2ba 100644 --- a/.github/workflows/pre-commit.yml +++ b/.github/workflows/pre-commit.yml @@ -4,6 +4,8 @@ on: pull_request: push: branches: [main] + paths-ignore: + - 'constraints-*.txt' jobs: pre-commit: diff --git a/.github/workflows/schemas-doc-generator.yml b/.github/workflows/schemas-doc-generator.yml index 956031ab..a5a39e7a 100644 --- a/.github/workflows/schemas-doc-generator.yml +++ b/.github/workflows/schemas-doc-generator.yml @@ -3,6 +3,8 @@ name: schemas-doc-generator on: push: branches: [main] + paths: + - 'wfexs_backend/schemas/*.json' jobs: json-schema-validation: @@ -10,7 +12,7 @@ jobs: name: JSON Schema validation through pre-commit steps: - uses: actions/checkout@v3 - - uses: pre-commit/action@v3.0.0 + - uses: pre-commit/action@v3.0.1 with: extra_args: --all -c .pre-commit-config.yaml jsonschema_dir_validate