Skip to content

Commit

Permalink
Add -type f to generate-matrix default find(1) options
Browse files Browse the repository at this point in the history
This ensures we only list regular files and not symbolic links. It may
be the case that a project symlinks `stack.yaml` to one of the specific
configurations. In such cases, only the actual files should generate
matrix elements. Generating one for `stack.yaml` would be redundant.

Projects that attach extra tasks (weeder, coverage) to only the
`stack.yaml` build should either not use a symlink, or adjust the `find`
input accordingly.
  • Loading branch information
pbrisbin committed Jan 7, 2025
1 parent 70da915 commit 5e836d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion generate-matrix/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ inputs:
find-options:
description: "Arguments to find(1) stack-yaml files"
required: true
default: "-maxdepth 1 -name 'stack*.yaml'"
default: "-type f -maxdepth 1 -name 'stack*.yaml'"
outputs:
stack-yamls:
description: Version-sorted list of all files matching stack*.yaml
Expand Down

0 comments on commit 5e836d5

Please sign in to comment.