From 6e37e663919126ff8588c9fd644346f6c5b8068b Mon Sep 17 00:00:00 2001 From: Michalina Date: Wed, 28 Jun 2023 10:08:18 +0200 Subject: [PATCH] Use the path filter when triggering `contracts-docs-publish-preview` Instead of running the `contracts-docs-publish-preview` job on update of every PR, we want to run it only when PR modifies contracts or the workflow itself. --- .github/workflows/contracts-docs.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/contracts-docs.yml b/.github/workflows/contracts-docs.yml index 394d7afe9..162e54cc9 100644 --- a/.github/workflows/contracts-docs.yml +++ b/.github/workflows/contracts-docs.yml @@ -36,7 +36,7 @@ jobs: name: Publish preview of contracts documentation needs: docs-detect-changes if: | - github.event_name == 'pull_request' + needs.docs-detect-changes.outputs.path-filter == 'true' || github.event_name == 'push' || github.event_name == 'workflow_dispatch' uses: keep-network/ci/.github/workflows/reusable-solidity-docs.yml@main