Skip to content

feat: --auto workflow/action discovery#120

Draft
anttiharju wants to merge 2 commits intompalmer:mainfrom
anttiharju:108-auto
Draft

feat: --auto workflow/action discovery#120
anttiharju wants to merge 2 commits intompalmer:mainfrom
anttiharju:108-auto

Conversation

@anttiharju
Copy link
Copy Markdown
Contributor

@anttiharju anttiharju commented Apr 4, 2026

  1. adds --auto flag that uses the same patterns as action.yml:

patterns:
description: 'Newline-separated list of git ls-files patterns'
required: false
default: |
:(glob).github/**/action.yml
:(glob).github/**/action.yaml
.github/workflows/*.yml
.github/workflows/*.yaml

  1. enhances --verbose output:
  • before: Treating action.yml as an Action definition
  • after: Treating foo/action.yml as an Action definition
  • Relevant since the default --auto patterns are fairly cautious (only discovering files under .github/), so that people can fairly easily notice even upon success if all expected files are covered or not

--auto can be used together with providing a list of files. Not mutually exclusive.

Previously:

Treating action.yml as an Action definition

Now:

Treating foo/action.yml as an Action definition

This is immensely helpful for figuring out what
actions are picked up in repositories with
several of them. Note that the default --auto
patterns are fairly conservative in regards to
where action.ya?mls can be found.
@anttiharju anttiharju marked this pull request as draft April 7, 2026 17:54
@mpalmer mpalmer force-pushed the main branch 4 times, most recently from 6d5741f to c994f42 Compare April 8, 2026 23:55
@anttiharju
Copy link
Copy Markdown
Contributor Author

anttiharju commented Apr 10, 2026

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Autodiscover files to validate

1 participant