-
Notifications
You must be signed in to change notification settings - Fork 0
π [Feature]: Release-triggering file patterns now configurable via workflow input #301
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weβll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -381,6 +381,7 @@ jobs: | |||||
| | `Version` | `string` | Specifies the version of the GitHub module to be installed. The value must be an exact version. | `false` | `''` | | ||||||
| | `Prerelease` | `boolean` | Whether to use a prerelease version of the 'GitHub' module. | `false` | `false` | | ||||||
| | `WorkingDirectory` | `string` | The path to the root of the repo. | `false` | `'.'` | | ||||||
| | `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$` | | ||||||
|
|
||||||
| ### Secrets | ||||||
|
|
||||||
|
|
@@ -445,12 +446,43 @@ The workflow automatically detects whether a pull request contains changes to "i | |||||
| release. This prevents unnecessary releases when only non-functional files (such as workflow configurations, linter | ||||||
| settings, or test files) are modified. | ||||||
|
|
||||||
| #### Files that trigger releases | ||||||
| #### Default patterns | ||||||
|
|
||||||
| | Path | Description | | ||||||
| By default, the following regular expression patterns identify important files: | ||||||
|
|
||||||
| | Pattern | Description | | ||||||
| | :--- | :---------- | | ||||||
| | `src/**` | Module source code | | ||||||
| | `README.md` | Module documentation | | ||||||
| | `^src/` | Module source code | | ||||||
| | `^README\.md$` | Module documentation | | ||||||
|
|
||||||
| #### Customizing important file patterns | ||||||
|
|
||||||
| To override the default patterns, set `ImportantFilePatterns` in your settings file (`.github/PSModule.yml`): | ||||||
|
|
||||||
| ```yaml | ||||||
| ImportantFilePatterns: | ||||||
| - '^src/' | ||||||
| - '^README\.md$' | ||||||
| - '^examples/' | ||||||
| ``` | ||||||
|
|
||||||
| When configured, the provided list fully replaces the defaults. Include the default patterns in your list if you still | ||||||
| want them to trigger releases. | ||||||
|
|
||||||
| You can also pass patterns via the workflow input: | ||||||
|
|
||||||
| ```yaml | ||||||
| jobs: | ||||||
| Process: | ||||||
| uses: PSModule/Process-PSModule/.github/workflows/workflow.yml@v1 | ||||||
|
||||||
| uses: PSModule/Process-PSModule/.github/workflows/workflow.yml@v1 | |
| uses: PSModule/Process-PSModule/.github/workflows/workflow.yml@v5 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The PR description states that
ImportantFilePatterns: []is a valid override to disable file-change triggering entirely, but this README section doesnβt mention that edge case (or how to represent it via workflow input). Please document the empty-list behavior explicitly so users can intentionally disable triggers without guessing how the resolver treats empty/blank inputs.