Commit 84d7bac
⚙️ [Maintenance]: Add path filter and align Release workflow (#283)
Aligning the workflow structure to match the convention used across all
action repos in the PSModule organization. This includes renaming to
`Release` and adding a `paths` filter with negation patterns, so only
changes to the 16 reusable workflow files trigger a release.
- Fixes #282
## Renamed to `Release.yml`
The workflow file is renamed from `Auto-Release.yml` to `Release.yml` to
align with the naming convention used across all action repos
(`Build-PSModule`, `GitHub-Script`, `Publish-PSModule`, etc.). The
workflow name, run-name, job name, step names, and permission comments
are all aligned.
## Path filter with negation patterns
The `Release.yml` now uses `paths` with `!` negation entries to include
all workflow files while explicitly excluding the 4 internal-only
workflows:
```yaml
paths:
- '.github/workflows/**'
- '!.github/workflows/Release.yml'
- '!.github/workflows/Linter.yml'
- '!.github/workflows/Workflow-Test-*'
```
What actions now triggers a release:
| Change | Triggers release? |
|--------|:-----------------:|
| Reusable workflow file (e.g., `Build-Module.yml`) | Yes |
| Internal workflow (e.g., `Linter.yml`, `Release.yml`) | No |
| Linter config (`.github/linters/**`) | No |
| Documentation (`README.md`) | No |
| Tests (`tests/**`) | No |
## Removed `IncrementalPrerelease: false`
This was a non-default override. Dropping it aligns with the action
repos, which use the default from `Release-GHRepository`.
---------
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: MariusStorhaug <17722253+MariusStorhaug@users.noreply.github.com>
Co-authored-by: Marius Storhaug <marstor@hotmail.com>1 parent 2d403df commit 84d7bac
1 file changed
+12
-9
lines changedLines changed: 12 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
15 | 20 | | |
16 | 21 | | |
17 | 22 | | |
18 | 23 | | |
19 | 24 | | |
20 | 25 | | |
21 | | - | |
22 | | - | |
| 26 | + | |
| 27 | + | |
23 | 28 | | |
24 | 29 | | |
25 | | - | |
| 30 | + | |
26 | 31 | | |
27 | 32 | | |
28 | | - | |
| 33 | + | |
29 | 34 | | |
30 | 35 | | |
31 | 36 | | |
32 | 37 | | |
33 | | - | |
| 38 | + | |
34 | 39 | | |
35 | | - | |
36 | | - | |
| |||
0 commit comments