⚙️ [Maintenance]: Add path filter and align Release workflow#283
Conversation
Co-authored-by: MariusStorhaug <17722253+MariusStorhaug@users.noreply.github.com>
There was a problem hiding this comment.
Pull request overview
This PR adds path filtering to the Auto-Release workflow to prevent unnecessary releases when only documentation, test data, or metadata files are changed. The workflow will now only trigger when changes affect .github/workflows/** or .github/linters/**, which are the consumable products of this reusable workflow repository.
Changes:
- Added
pathsfilter to Auto-Release workflow limiting triggers to workflow and linter configuration files
No Significant Changes DetectedThis PR does not contain changes to files that would trigger a new release:
Build, test, and publish stages will be skipped for this PR. If you believe this is incorrect, please verify that your changes are in the correct locations. |
1 similar comment
No Significant Changes DetectedThis PR does not contain changes to files that would trigger a new release:
Build, test, and publish stages will be skipped for this PR. If you believe this is incorrect, please verify that your changes are in the correct locations. |
No Significant Changes DetectedThis PR does not contain changes to files that would trigger a new release:
Build, test, and publish stages will be skipped for this PR. If you believe this is incorrect, please verify that your changes are in the correct locations. |
1 similar comment
No Significant Changes DetectedThis PR does not contain changes to files that would trigger a new release:
Build, test, and publish stages will be skipped for this PR. If you believe this is incorrect, please verify that your changes are in the correct locations. |
Aligning the workflow structure to match the convention used across all action repos in the PSModule organization. This includes renaming to
Releaseand adding apathsfilter with negation patterns, so only changes to the 16 reusable workflow files trigger a release.Renamed to
Release.ymlThe workflow file is renamed from
Auto-Release.ymltoRelease.ymlto 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.ymlnow usespathswith!negation entries to include all workflow files while explicitly excluding the 4 internal-only workflows:What actions now triggers a release:
Build-Module.yml)Linter.yml,Release.yml).github/linters/**)README.md)tests/**)Removed
IncrementalPrerelease: falseThis was a non-default override. Dropping it aligns with the action repos, which use the default from
Release-GHRepository.