Skip to content

Commit 1890a9f

Browse files
Add concrete YAML example for passing empty ImportantFilePatterns via workflow input
Agent-Logs-Url: https://github.com/PSModule/Process-PSModule/sessions/125e114f-636a-4271-8f37-f4ee9888f98e Co-authored-by: MariusStorhaug <17722253+MariusStorhaug@users.noreply.github.com>
1 parent c60f3f2 commit 1890a9f

File tree

1 file changed

+13
-4
lines changed

1 file changed

+13
-4
lines changed

README.md

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -500,10 +500,19 @@ jobs:
500500
^examples/
501501
```
502502

503-
To disable triggering via workflow input, pass an explicit empty string. Note that omitting the input entirely causes
504-
the workflow's default patterns (`^src/` and `^README\.md$`) to be used — the settings file takes priority over the
505-
workflow input, so set `ImportantFilePatterns: []` in `.github/PSModule.yml` to disable triggering regardless of the
506-
workflow input.
503+
To disable triggering via the workflow input, pass an explicit empty string:
504+
505+
```yaml
506+
jobs:
507+
process:
508+
uses: PSModule/Process-PSModule/.github/workflows/workflow.yml@v5
509+
with:
510+
ImportantFilePatterns: ''
511+
```
512+
513+
Note that omitting the `ImportantFilePatterns` key entirely causes the workflow's default patterns (`^src/` and
514+
`^README\.md$`) to be used. The settings file takes priority over the workflow input, so set
515+
`ImportantFilePatterns: []` in `.github/PSModule.yml` to disable triggering regardless of the workflow input.
507516

508517
Resolution order: settings file → workflow input → workflow input default values.
509518

0 commit comments

Comments
 (0)