From cd4d88d92974d1d1c314f784ee81860e27935cd0 Mon Sep 17 00:00:00 2001 From: burgholzer Date: Sat, 28 Sep 2024 12:52:35 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A7=20adjust=20workflow=20condition?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: burgholzer --- .github/workflows/reusable-change-detection.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/reusable-change-detection.yml b/.github/workflows/reusable-change-detection.yml index 796d306..4c80459 100644 --- a/.github/workflows/reusable-change-detection.yml +++ b/.github/workflows/reusable-change-detection.yml @@ -148,7 +148,9 @@ jobs: filter: | .github/workflows/cd.yml - name: Set a flag for running the continuous deployment job - if: steps.changed-cd-files.outputs.added_modified_renamed != '' + if: >- + github.event_name == 'pull_request' + && steps.changed-code-ql-files.outputs.added_modified_renamed != '' id: cd-changes run: >- echo "run-cd=true" >> "${GITHUB_OUTPUT}"