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
This GitHub Action is a part of the [PSModule framework](https://github.com/PSModule).
4
+
5
+
## Inputs
6
+
7
+
| Input | Description | Required | Default |
8
+
| :---- | :---------- | :------: | :------ |
9
+
|`Name`| Name of the module. | No | Repository name |
10
+
|`SettingsPath`| Path to the settings file (json, yaml/yml, or psd1). | No ||
11
+
|`ImportantFilePatterns`| Newline-separated list of regex patterns that identify important files. Changes matching these patterns trigger build, test, and publish stages. | No |`^src/` and `^README\.md$`|
12
+
|`Debug`| Enable debug output. | No |`false`|
13
+
|`Verbose`| Enable verbose output. | No |`false`|
14
+
|`Version`| Specifies the version of the GitHub module to be installed. | No ||
15
+
|`Prerelease`| Allow prerelease versions if available. | No |`false`|
16
+
|`WorkingDirectory`| The working directory where the script will run from. | No |`${{ github.workspace }}`|
17
+
18
+
## Settings file
19
+
20
+
The action reads settings from a file (default: `.github/PSModule.yml`). Settings in the file take precedence over action inputs.
21
+
22
+
### ImportantFilePatterns
23
+
24
+
Controls which file changes trigger build, test, and publish stages. When a PR only changes files that don't match any
25
+
of these patterns, those stages are skipped.
26
+
27
+
Default patterns (used when not configured):
28
+
29
+
-`^src/` — Module source code
30
+
-`^README\.md$` — Root documentation
31
+
32
+
To override, add `ImportantFilePatterns` to your settings file:
33
+
34
+
```yaml
35
+
ImportantFilePatterns:
36
+
- '^src/'
37
+
- '^README\.md$'
38
+
- '^examples/'
39
+
```
40
+
41
+
When configured, the provided list fully replaces the defaults. Include the default patterns in your list if you still
Copy file name to clipboardExpand all lines: src/Settings.schema.json
+7Lines changed: 7 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -9,6 +9,13 @@
9
9
"type": "string",
10
10
"description": "The name of the module"
11
11
},
12
+
"ImportantFilePatterns": {
13
+
"type": "array",
14
+
"description": "Regex patterns that identify important files. Changes matching these patterns trigger build, test, and publish stages. Defaults to ['^src/', '^README\\.md$'] when not configured.",
0 commit comments