From 64d69190dcdfc25fa6041738f843727aa49783ab Mon Sep 17 00:00:00 2001 From: Jon Cinque Date: Thu, 16 Nov 2023 15:17:49 +0100 Subject: [PATCH] ci: Don't run downstream workflows if token/js is changed (#5850) --- .github/workflows/pull-request-binary-oracle-pair.yml | 2 ++ .github/workflows/pull-request-feature-proposal.yml | 2 ++ .github/workflows/pull-request-governance.yml | 2 ++ .github/workflows/pull-request-single-pool.yml | 2 ++ .github/workflows/pull-request-stake-pool.yml | 2 ++ .github/workflows/pull-request-token-collection.yml | 4 ++++ .github/workflows/pull-request-token-lending.yml | 2 ++ .github/workflows/pull-request-token-swap.yml | 2 ++ .github/workflows/pull-request-token-upgrade.yml | 2 ++ 9 files changed, 20 insertions(+) diff --git a/.github/workflows/pull-request-binary-oracle-pair.yml b/.github/workflows/pull-request-binary-oracle-pair.yml index 6c8e4e32bbd..23198c681bc 100644 --- a/.github/workflows/pull-request-binary-oracle-pair.yml +++ b/.github/workflows/pull-request-binary-oracle-pair.yml @@ -6,12 +6,14 @@ on: - 'binary-oracle-pair/**' - 'token/**' - 'ci/*-version.sh' + - '!token/js/**' push: branches: [master] paths: - 'binary-oracle-pair/**' - 'token/**' - 'ci/*-version.sh' + - '!token/js/**' jobs: cargo-test-sbf: diff --git a/.github/workflows/pull-request-feature-proposal.yml b/.github/workflows/pull-request-feature-proposal.yml index 438bc96b0fe..7b1b63e4b41 100644 --- a/.github/workflows/pull-request-feature-proposal.yml +++ b/.github/workflows/pull-request-feature-proposal.yml @@ -6,12 +6,14 @@ on: - 'feature-proposal/**' - 'token/**' - 'ci/*-version.sh' + - '!token/js/**' push: branches: [master] paths: - 'feature-proposal/**' - 'token/**' - 'ci/*-version.sh' + - '!token/js/**' jobs: cargo-test-sbf: diff --git a/.github/workflows/pull-request-governance.yml b/.github/workflows/pull-request-governance.yml index 709c3aba91c..2e10594314c 100644 --- a/.github/workflows/pull-request-governance.yml +++ b/.github/workflows/pull-request-governance.yml @@ -6,12 +6,14 @@ on: - "governance/**" - "token/**" - "ci/*-version.sh" + - '!token/js/**' push: branches: [master] paths: - "governance/**" - "token/**" - "ci/*-version.sh" + - '!token/js/**' jobs: cargo-test-sbf: diff --git a/.github/workflows/pull-request-single-pool.yml b/.github/workflows/pull-request-single-pool.yml index 6b2827b71fb..13262364c7a 100644 --- a/.github/workflows/pull-request-single-pool.yml +++ b/.github/workflows/pull-request-single-pool.yml @@ -9,6 +9,7 @@ on: - 'ci/*-version.sh' - '.github/workflows/pull-request-single-pool.yml' - '!single-pool/js/**' + - '!token/js/**' push: branches: [master] paths: @@ -18,6 +19,7 @@ on: - 'ci/*-version.sh' - '.github/workflows/pull-request-single-pool.yml' - '!single-pool/js/**' + - '!token/js/**' jobs: cargo-test-sbf: diff --git a/.github/workflows/pull-request-stake-pool.yml b/.github/workflows/pull-request-stake-pool.yml index 9d8a3e21df0..71e6c2d2fb2 100644 --- a/.github/workflows/pull-request-stake-pool.yml +++ b/.github/workflows/pull-request-stake-pool.yml @@ -9,6 +9,7 @@ on: - 'ci/warning/purge-ubuntu-runner.sh' - '.github/workflows/pull-request-stake-pool.yml' - '!stake-pool/js/**' + - '!token/js/**' push: branches: [master] paths: @@ -18,6 +19,7 @@ on: - 'ci/warning/purge-ubuntu-runner.sh' - '.github/workflows/pull-request-stake-pool.yml' - '!stake-pool/js/**' + - '!token/js/**' jobs: cargo-test-sbf: diff --git a/.github/workflows/pull-request-token-collection.yml b/.github/workflows/pull-request-token-collection.yml index 9f10bc8c150..f179531378c 100644 --- a/.github/workflows/pull-request-token-collection.yml +++ b/.github/workflows/pull-request-token-collection.yml @@ -9,6 +9,8 @@ on: - 'token-metadata/**' - 'ci/*-version.sh' - '.github/workflows/pull-request-token-collection.yml' + - '!token/js/**' + - '!token-metadata/js/**' push: branches: [master] paths: @@ -18,6 +20,8 @@ on: - 'token-metadata/**' - 'ci/*-version.sh' - '.github/workflows/pull-request-token-collection.yml' + - '!token/js/**' + - '!token-metadata/js/**' jobs: cargo-test-sbf: diff --git a/.github/workflows/pull-request-token-lending.yml b/.github/workflows/pull-request-token-lending.yml index 5a317465d15..6f1373995d9 100644 --- a/.github/workflows/pull-request-token-lending.yml +++ b/.github/workflows/pull-request-token-lending.yml @@ -7,6 +7,7 @@ on: - 'token/**' - 'ci/*-version.sh' - '!token-lending/js/**' + - '!token/js/**' push: branches: [master] paths: @@ -14,6 +15,7 @@ on: - 'token/**' - 'ci/*-version.sh' - '!token-lending/js/**' + - '!token/js/**' jobs: cargo-test-sbf: diff --git a/.github/workflows/pull-request-token-swap.yml b/.github/workflows/pull-request-token-swap.yml index 264b88fd128..305052a24ca 100644 --- a/.github/workflows/pull-request-token-swap.yml +++ b/.github/workflows/pull-request-token-swap.yml @@ -8,6 +8,7 @@ on: - 'libraries/math/**' - 'ci/*-version.sh' - '!token-swap/js/**' + - '!token/js/**' push: branches: [master] paths: @@ -16,6 +17,7 @@ on: - 'libraries/math/**' - 'ci/*-version.sh' - '!token-swap/js/**' + - '!token/js/**' jobs: cargo-test-sbf: diff --git a/.github/workflows/pull-request-token-upgrade.yml b/.github/workflows/pull-request-token-upgrade.yml index 3af9ca8274d..ce22f808662 100644 --- a/.github/workflows/pull-request-token-upgrade.yml +++ b/.github/workflows/pull-request-token-upgrade.yml @@ -7,6 +7,7 @@ on: - 'token/**' - 'ci/*-version.sh' - '.github/workflows/pull-request-token-upgrade.yml' + - '!token/js/**' push: branches: [master] paths: @@ -14,6 +15,7 @@ on: - 'token/**' - 'ci/*-version.sh' - '.github/workflows/pull-request-token-upgrade.yml' + - '!token/js/**' jobs: cargo-test-sbf: