Skip to content

Exclude workflows by full path not just filename #82

@Wuodan

Description

@Wuodan

Currently workflows are excluded by filename like:

  • exclude-workflows: 'experimental.yml,temp-workflow.yml'
  • exclude-workflows: 'experimental-*.yml'

But this can lead to unwanted exclusions for common filenames like ci.yml which are then excluded in all traversed repos during recursion into remote actions/workflows.

My suggestion:

Exclusions must be by full path

Example: some-org/some-repo/.github/workflows/ci.yml@v1

To exclude this, one must provide:

  • org/owner
  • repo-name
  • path before the @

Glob/Wildcard handling

One could discuss the use of wildcards for:

  • owner
  • repo-name
  • path

But for simplicity I'd opt for globs/wildcards only being accepted in the filename or maybe in the path, but NOT in the owner/repo.


You brought this up in #81 (comment) and I also thought about this a while ago. It's a valid issue to be improved imho.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions