gnodet opened a new pull request, #21885:
URL: https://github.com/apache/camel/pull/21885

   ## Summary
   
   - PRs created by the `check-container-versions.yml` workflow using 
`GITHUB_TOKEN` don't trigger `pull_request`-based CI workflows (this is a 
GitHub limitation)
   - Add `workflow_dispatch` trigger to `pr-build-main.yml` with `pr_number` 
and `pr_ref` inputs so it can be explicitly triggered for automated PRs
   - After creating each container version PR, `check-container-versions.yml` 
now calls `gh workflow run pr-build-main.yml` to trigger CI 
(`workflow_dispatch` is an explicit exception to the GITHUB_TOKEN limitation)
   - Add `base-ref` input to `detect-dependencies` action to support 
`workflow_dispatch` triggers where `github.base_ref` is unavailable
   
   ## Changes
   
   - `.github/workflows/pr-build-main.yml`: Add `workflow_dispatch` trigger, 
adapt checkout/concurrency/PR-id references
   - `.github/workflows/check-container-versions.yml`: Add `actions: write` 
permission, trigger CI after PR creation
   - `.github/actions/detect-dependencies/action.yaml`: Add `base-ref` input 
with fallback to `github.base_ref`
   
   ## Test plan
   
   - [ ] Verify `pr-build-main.yml` still works correctly for normal 
`pull_request` events (this PR itself serves as a test)
   - [ ] Trigger `check-container-versions.yml` manually and verify it creates 
PRs that get CI runs


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to