Skip to content

Commit 6072016

Browse files
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.
1 parent 955effc commit 6072016

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/contracts-docs.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636
name: Publish preview of contracts documentation
3737
needs: docs-detect-changes
3838
if: |
39-
github.event_name == 'pull_request'
39+
needs.docs-detect-changes.outputs.path-filter == 'true'
4040
|| github.event_name == 'push'
4141
|| github.event_name == 'workflow_dispatch'
4242
uses: keep-network/ci/.github/workflows/reusable-solidity-docs.yml@main

0 commit comments

Comments
 (0)