Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: Check that globs in on.*.paths match at least one file #430

Open
allanlewis opened this issue May 29, 2024 · 0 comments
Open
Labels
enhancement New feature or request

Comments

@allanlewis
Copy link

It would be useful to me if Actionlint could report when globs in on.*.paths don't match any files.

The following shell pipeline approximates what I'd like to do:

git ls-files -- '.github/workflows/*.yml' \
  | parallel "yq -o json {} | jq -r '.on | to_entries[].value | .paths // empty | .[]' 2>/dev/null" \
  | sort -u \
  | parallel -k --bar --tag "git ls-files --error-unmatch :{} >/dev/null"

However, this obviously uses Git's pattern syntax which probably differs from GitHub's in some subtle respects.

@rhysd rhysd added the enhancement New feature or request label May 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants