From 84931c63f7562abc89860097e0caf563c7b87f65 Mon Sep 17 00:00:00 2001 From: Mohsen Hariri Date: Sat, 20 Apr 2024 00:35:55 -0700 Subject: [PATCH] Fix an example in README.md (#342) Only run when both should_skip flags are false --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index c2e3f57..b2dc8e5 100644 --- a/README.md +++ b/README.md @@ -332,7 +332,7 @@ jobs: # If 'skip-duplicate-actions' terminates before the paths checks are performed (for example, when a successful duplicate run has # been found) 'paths_result' outputs an empty object ('{}'). This can be easily intercepted in the if condition of a job # by checking the result of the "global" 'should_skip' output first. - if: needs.pre_job.outputs.should_skip != 'true' || !fromJSON(needs.pre_job.outputs.paths_result).frontend.should_skip + if: needs.pre_job.outputs.should_skip != 'true' && !fromJSON(needs.pre_job.outputs.paths_result).frontend.should_skip # ... backend: