You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+43-6Lines changed: 43 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -381,6 +381,7 @@ jobs:
381
381
| `Version` | `string` | Specifies the version of the GitHub module to be installed. The value must be an exact version. | `false` | `''` |
382
382
| `Prerelease` | `boolean` | Whether to use a prerelease version of the 'GitHub' module. | `false` | `false` |
383
383
| `WorkingDirectory` | `string` | The path to the root of the repo. | `false` | `'.'` |
384
+
| `ImportantFilePatterns` | `string` | Newline-separated list of regular expression patterns that identify important files. Changes matching these patterns trigger build, test, and publish stages. When set, fully replaces the defaults. | `false` | `^src/` and `^README\.md$` |
384
385
385
386
### Secrets
386
387
@@ -445,12 +446,43 @@ The workflow automatically detects whether a pull request contains changes to "i
445
446
release. This prevents unnecessary releases when only non-functional files (such as workflow configurations, linter
446
447
settings, or test files) are modified.
447
448
448
-
#### Files that trigger releases
449
+
#### Default patterns
449
450
450
-
| Path | Description |
451
+
By default, the following regular expression patterns identify important files:
452
+
453
+
| Pattern | Description |
451
454
| :--- | :---------- |
452
-
| `src/**` | Module source code |
453
-
| `README.md` | Module documentation |
455
+
| `^src/` | Module source code |
456
+
| `^README\.md$` | Module documentation |
457
+
458
+
#### Customizing important file patterns
459
+
460
+
To override the default patterns, set `ImportantFilePatterns` in your settings file (`.github/PSModule.yml`):
461
+
462
+
```yaml
463
+
ImportantFilePatterns:
464
+
- '^src/'
465
+
- '^README\.md$'
466
+
- '^examples/'
467
+
```
468
+
469
+
When configured, the provided list fully replaces the defaults. Include the default patterns in your list if you still
470
+
want them to trigger releases.
471
+
472
+
You can also pass patterns via the workflow input:
0 commit comments