Commit 1111791
🚀 [Feature]: Release-triggering file patterns now configurable via workflow input (#301)
Repositories can now control which file changes trigger build, test, and
publish stages by configuring the `ImportantFilePatterns` workflow input
or settings file property. The default patterns (`^src/` and
`^README\.md$`) remain unchanged for backward compatibility.
- Fixes #278
## New: Configurable release-triggering file patterns
The `ImportantFilePatterns` input is now available on the `workflow.yml`
and `Get-Settings.yml` reusable workflows. Pass a newline-separated list
of regex patterns to override the defaults:
```yaml
jobs:
Process:
uses: PSModule/Process-PSModule/.github/workflows/workflow.yml@v5
with:
ImportantFilePatterns: |
^src/
^README\.md$
^examples/
```
To disable file-change triggering entirely, pass an empty string via the
workflow input or set an empty list in `.github/PSModule.yml`:
```yaml
# In .github/PSModule.yml
ImportantFilePatterns: []
```
Resolution order: settings file → workflow input → workflow input
default values.
## Changed: PR comment reflects configured patterns
The automated comment posted on PRs when no important files are changed
now dynamically lists the configured patterns instead of a hardcoded
table.
## Technical Details
- Added `ImportantFilePatterns` input (type: `string`,
newline-separated) to both `.github/workflows/workflow.yml` and
`.github/workflows/Get-Settings.yml` with explicit defaults (`^src/` and
`^README\.md$`).
- Bumped `Get-PSModuleSettings` action reference from `v1.4.4` to
`v1.5.0` which implements the settings file and action input support for
this feature.
- Passed `ImportantFilePatterns` input through the reusable workflow
chain to the `Get-PSModuleSettings` action step.
- Updated README documentation: new input in the workflow inputs table,
new "Customizing important file patterns" section with YAML examples,
updated settings file reference and example schema.
---------
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>1 parent 3ed96da commit 1111791
3 files changed
+84
-13
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
35 | 45 | | |
36 | 46 | | |
37 | 47 | | |
| |||
56 | 66 | | |
57 | 67 | | |
58 | 68 | | |
59 | | - | |
| 69 | + | |
60 | 70 | | |
61 | 71 | | |
62 | 72 | | |
| |||
65 | 75 | | |
66 | 76 | | |
67 | 77 | | |
| 78 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
58 | 58 | | |
59 | 59 | | |
60 | 60 | | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
61 | 71 | | |
62 | 72 | | |
63 | 73 | | |
| |||
81 | 91 | | |
82 | 92 | | |
83 | 93 | | |
| 94 | + | |
84 | 95 | | |
85 | 96 | | |
86 | 97 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
75 | 75 | | |
76 | 76 | | |
77 | 77 | | |
78 | | - | |
| 78 | + | |
79 | 79 | | |
80 | 80 | | |
81 | 81 | | |
| |||
392 | 392 | | |
393 | 393 | | |
394 | 394 | | |
| 395 | + | |
395 | 396 | | |
396 | 397 | | |
397 | 398 | | |
| |||
458 | 459 | | |
459 | 460 | | |
460 | 461 | | |
461 | | - | |
| 462 | + | |
| 463 | + | |
| 464 | + | |
462 | 465 | | |
463 | | - | |
464 | | - | |
| 466 | + | |
| 467 | + | |
| 468 | + | |
| 469 | + | |
| 470 | + | |
| 471 | + | |
| 472 | + | |
| 473 | + | |
| 474 | + | |
| 475 | + | |
| 476 | + | |
| 477 | + | |
| 478 | + | |
465 | 479 | | |
466 | | - | |
| 480 | + | |
| 481 | + | |
467 | 482 | | |
468 | | - | |
| 483 | + | |
| 484 | + | |
469 | 485 | | |
470 | | - | |
471 | | - | |
472 | | - | |
473 | | - | |
474 | | - | |
| 486 | + | |
| 487 | + | |
| 488 | + | |
| 489 | + | |
| 490 | + | |
| 491 | + | |
| 492 | + | |
| 493 | + | |
| 494 | + | |
| 495 | + | |
| 496 | + | |
| 497 | + | |
| 498 | + | |
| 499 | + | |
| 500 | + | |
| 501 | + | |
| 502 | + | |
| 503 | + | |
| 504 | + | |
| 505 | + | |
| 506 | + | |
| 507 | + | |
| 508 | + | |
| 509 | + | |
| 510 | + | |
| 511 | + | |
| 512 | + | |
| 513 | + | |
| 514 | + | |
| 515 | + | |
| 516 | + | |
| 517 | + | |
475 | 518 | | |
476 | 519 | | |
477 | 520 | | |
478 | 521 | | |
479 | 522 | | |
480 | | - | |
| 523 | + | |
| 524 | + | |
481 | 525 | | |
482 | 526 | | |
483 | 527 | | |
| |||
495 | 539 | | |
496 | 540 | | |
497 | 541 | | |
| 542 | + | |
498 | 543 | | |
499 | 544 | | |
500 | 545 | | |
| |||
543 | 588 | | |
544 | 589 | | |
545 | 590 | | |
| 591 | + | |
| 592 | + | |
| 593 | + | |
| 594 | + | |
546 | 595 | | |
547 | 596 | | |
548 | 597 | | |
| |||
0 commit comments