zyactions/ZyAction: Glob Match
A GitHub Action for matching `glob` patterns.
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| working-directory | The working-directory for the action. Defaults to the repository root directory (`github.workspace`). When working on the file system, patterns and matches are considered relative to the specified working directory. If the `pipe` input is used, the pipe command will be executed in the current `working-directory`. This input has no effect if the `values` input is set. The working directory will as well be included in the `pipe` output, if `return-pipe` is enabled. | no | ${{ github.workspace }} |
| pattern | One or more file, path, or placeholder patterns that describe which items to match. Supports multiline strings. | yes | "" |
| values | An optional list of values to be matched (separated by line breaks). The action operates on the file system if neither the `values`-, nor the `pipe`-input is set. This input must be used mutually exclusive with the `pipe` input. | no | "" |
| pipe | An optional pipe input from which the input values are to be read. This must be set to a valid shell command line (bash) that can be used for piping. The command must output to `stdout` and separate the individual values by line breaks. WARNING: The command passed to this input will be evaluated and should not come from untrusted sources. The pipe command is executed in the current `working-directory` by default. If the pipe command is to be executed in another working directory, make sure to properly insert a directory change command. The action operates on the file system if neither the `values`-, nor the `pipe`-input is set. This input must be used mutually exclusive with the `values` input. | no | "" |
| return-pipe | Enable this option to return a shell (bash) command in the `pipe` output that can be used for piping. The output command must be `eval`ed to return the results. It can also be passed to other actions that support a `pipe` input. The `matches` output will not be populated if this option is enabled. | no | false |
Outputs
| name | description |
|---|---|
| matches | A list of all matching elements, delimited by newlines or spaces (if the `quote` option is used). This output is only available if the `return-pipe` option is not enabled. |
| pipe | A shell (bash) command which can be used for piping. This output is only available if the `return-pipe` option is enabled. |