Skip to content

Commit cd4d88d

Browse files
committed
🔧 adjust workflow condition
Signed-off-by: burgholzer <[email protected]>
1 parent 7867c4c commit cd4d88d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/reusable-change-detection.yml

+3-1
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,9 @@ jobs:
148148
filter: |
149149
.github/workflows/cd.yml
150150
- name: Set a flag for running the continuous deployment job
151-
if: steps.changed-cd-files.outputs.added_modified_renamed != ''
151+
if: >-
152+
github.event_name == 'pull_request'
153+
&& steps.changed-code-ql-files.outputs.added_modified_renamed != ''
152154
id: cd-changes
153155
run: >-
154156
echo "run-cd=true" >> "${GITHUB_OUTPUT}"

0 commit comments

Comments
 (0)