Skip to content

Add paths filters to GitHub Actions workflows to avoid unnecessary runs#4702

Merged
k8s-ci-robot merged 1 commit intomasterfrom
copilot/add-github-actions-paths
Apr 16, 2026
Merged

Add paths filters to GitHub Actions workflows to avoid unnecessary runs#4702
k8s-ci-robot merged 1 commit intomasterfrom
copilot/add-github-actions-paths

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Apr 16, 2026

CI workflows were triggering on every push/PR regardless of what changed, wasting runner minutes on doc-only or config-only commits.

Changes

  • maven.yml — scopes push/pull_request triggers to **/*.java, **/pom.xml, .mvn/**, mvnw, mvnw.cmd, and the workflow file itself
  • codeql-analysis.yml — scopes push/pull_request triggers to **/*.java, **/pom.xml, and the workflow file; scheduled scan is unaffected
  • snapshot.yml — scopes push trigger to **/*.java, **/pom.xml, and the workflow file; workflow_dispatch is unaffected

generate.yml, generate-crd.yml, and release.yml are workflow_dispatch-only and require no changes.

Agent-Logs-Url: https://github.com/kubernetes-client/java/sessions/47a5164d-37fa-465b-8c2b-d93785cd24c6

Co-authored-by: brendandburns <5751682+brendandburns@users.noreply.github.com>
@k8s-ci-robot k8s-ci-robot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Apr 16, 2026
@k8s-ci-robot k8s-ci-robot added size/S Denotes a PR that changes 10-29 lines, ignoring generated files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. labels Apr 16, 2026
@brendandburns brendandburns marked this pull request as ready for review April 16, 2026 22:51
@k8s-ci-robot k8s-ci-robot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Apr 16, 2026
@brendandburns
Copy link
Copy Markdown
Contributor

/lgtm
/approve

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Apr 16, 2026
@k8s-ci-robot
Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: brendandburns, Copilot

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Apr 16, 2026
@k8s-ci-robot k8s-ci-robot merged commit d962d38 into master Apr 16, 2026
18 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged. size/S Denotes a PR that changes 10-29 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants