Skip to content

Commit

Permalink
Use the path filter when triggering contracts-docs-publish-preview
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
michalinacienciala committed Jun 28, 2023
1 parent 7d41bc9 commit 6e37e66
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/contracts-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6e37e66

Please sign in to comment.