Skip to content

Commit 790ad67

Browse files
Add default to workflow.yml ImportantFilePatterns and update README disable behavior
Agent-Logs-Url: https://github.com/PSModule/Process-PSModule/sessions/088ca732-ee58-4c14-988d-37dedbcef078 Co-authored-by: MariusStorhaug <17722253+MariusStorhaug@users.noreply.github.com>
1 parent b0c0691 commit 790ad67

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

.github/workflows/workflow.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,9 @@ on:
6565
Changes matching these patterns trigger build, test, and publish stages.
6666
When set, fully replaces the defaults (^src/ and ^README\.md$).
6767
required: false
68+
default: |
69+
^src/
70+
^README\.md$
6871
6972
permissions:
7073
contents: write # to checkout the repo and create releases on the repo

README.md

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

503-
To disable triggering via workflow input, pass an empty string or omit the `with:` block entirely and rely on the
504-
settings file instead.
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.
505507

506508
Resolution order: settings file → workflow input → hardcoded defaults.
507509

0 commit comments

Comments
 (0)