From 8b2d20368fdfed6b6c71bdae9528f2cf4bddba71 Mon Sep 17 00:00:00 2001 From: Claus Ibsen Date: Wed, 15 Jul 2026 13:11:57 +0200 Subject: [PATCH] CAMEL-24081: ci - Do not run Windows launcher check on unrelated PRs Co-Authored-By: Claude Opus 4.6 Signed-off-by: Claus Ibsen --- .github/workflows/camel-launcher-windows.yml | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/.github/workflows/camel-launcher-windows.yml b/.github/workflows/camel-launcher-windows.yml index d6a9cca151769..f4032f6ce1086 100644 --- a/.github/workflows/camel-launcher-windows.yml +++ b/.github/workflows/camel-launcher-windows.yml @@ -21,9 +21,17 @@ on: push: branches: - main + paths: + - 'tooling/camel-exe/**' + - 'dsl/camel-jbang/camel-launcher/**' + - '.github/workflows/camel-launcher-windows.yml' pull_request: branches: - main + paths: + - 'tooling/camel-exe/**' + - 'dsl/camel-jbang/camel-launcher/**' + - '.github/workflows/camel-launcher-windows.yml' workflow_dispatch: concurrency: @@ -43,8 +51,7 @@ jobs: - uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0 with: persist-credentials: false - # 50 commits covers any reasonable push batch; PRs fetch the base ref below. - fetch-depth: 50 + fetch-depth: 0 - id: changes run: | if [ "${{ github.event_name }}" = "workflow_dispatch" ]; then @@ -54,7 +61,6 @@ jobs: fi if [ "${{ github.event_name }}" = "pull_request" ]; then - git fetch origin "${{ github.base_ref }}" --depth=1 CHANGED="$(git diff --name-only "origin/${{ github.base_ref }}"...HEAD)" else CHANGED="$(git diff --name-only "${{ github.event.before }}" "${{ github.sha }}")"