This is an automated email from the ASF dual-hosted git repository.
davsclaus pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel.git
The following commit(s) were added to refs/heads/main by this push:
new 88d3fd77973f CAMEL-24081: ci - Do not run Windows launcher check on
unrelated PRs
88d3fd77973f is described below
commit 88d3fd77973f3a9352fe8209d7032f0b1e62d928
Author: Claus Ibsen <[email protected]>
AuthorDate: Wed Jul 15 15:17:23 2026 +0200
CAMEL-24081: ci - Do not run Windows launcher check on unrelated PRs
Add paths filters to camel-launcher-windows.yml so the workflow only
triggers when tooling/camel-exe/, dsl/camel-jbang/camel-launcher/, or
the workflow file itself are changed. Also fix the shallow clone issue
in detect-changes by using fetch-depth: 0.
Closes #24718
Co-Authored-By: Claude Opus 4.6 <[email protected]>
---
.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 d6a9cca15176..f4032f6ce108 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 }}")"