Skip to content

[GHA] Clean Stale Dependabot Branches cronjob (3) - #37399

Merged
akladiev merged 3 commits into
openvinotoolkit:masterfrom
jkoniusz:CVS-192415-cleanup-dependabot-branches
Aug 14, 2026
Merged

[GHA] Clean Stale Dependabot Branches cronjob (3)#37399
akladiev merged 3 commits into
openvinotoolkit:masterfrom
jkoniusz:CVS-192415-cleanup-dependabot-branches

Conversation

@jkoniusz

Copy link
Copy Markdown
Contributor

[GHA] Clean Stale Dependabot Branches cronjob

CVS-192415

Supporting workflow calls

@jkoniusz
jkoniusz requested a review from a team as a code owner August 12, 2026 11:50
@github-actions github-actions Bot added category: CI OpenVINO public CI github_actions Pull requests that update GitHub Actions code labels Aug 12, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds reusable-workflow support to the “Cleanup stale dependabot branches” GitHub Actions workflow so other openvinotoolkit repositories can call it while reusing the cleanup script from this repo.

Changes:

  • Exposes the workflow as a reusable workflow via workflow_call with dry_run input and required token secret.
  • Adjusts checkout to fetch the cleanup script from openvinotoolkit/openvino (pinned action + sparse checkout), using the current ref for in-repo runs and master for external callers.
  • Updates DRY_RUN computation to better handle missing inputs / string-vs-boolean representations (but currently does not allow real deletions for workflow_call).

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread .github/workflows/cleanup_dependabot_branches.yml

@akashchi akashchi left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If this workflow is to be used in several repositories, why not transform it into a GitHub Action? It is a cleaner approach when the gha workflow is needed in several repositories. The workflow_call is to reuse in the same repository.

@akladiev

Copy link
Copy Markdown
Collaborator

If this workflow is to be used in several repositories, why not transform it into a GitHub Action? It is a cleaner approach when the gha workflow is needed in several repositories. The workflow_call is to reuse in the same repository.

workflow_call is not necessarily for using in the same repo, there is both a technical possibility and a doc about re-using workflows from a different repo. Custom actions are for being used as a step within a workflow; and this is a standalone workflow, so maaaybe having it re-usable is a better idea

@akashchi

Copy link
Copy Markdown
Contributor

If this workflow is to be used in several repositories, why not transform it into a GitHub Action? It is a cleaner approach when the gha workflow is needed in several repositories. The workflow_call is to reuse in the same repository.

workflow_call is not necessarily for using in the same repo, there is both a technical possibility and a doc about re-using workflows from a different repo. Custom actions are for being used as a step within a workflow; and this is a standalone workflow, so maaaybe having it re-usable is a better idea

It makes sense, I agree.

@akashchi
akashchi self-requested a review August 14, 2026 08:59
@akladiev
akladiev added this pull request to the merge queue Aug 14, 2026
Merged via the queue into openvinotoolkit:master with commit 0b2a6e7 Aug 14, 2026
218 of 220 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

category: CI OpenVINO public CI github_actions Pull requests that update GitHub Actions code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants