Skip to content

⚙️ [Maintenance]: Add path filter and align Release workflow#283

Merged
Marius Storhaug (MariusStorhaug) merged 4 commits intomainfrom
copilot/add-path-filter-auto-release
Feb 16, 2026
Merged

⚙️ [Maintenance]: Add path filter and align Release workflow#283
Marius Storhaug (MariusStorhaug) merged 4 commits intomainfrom
copilot/add-path-filter-auto-release

Conversation

Copy link
Contributor

Copilot AI commented Feb 15, 2026

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.

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:

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: MariusStorhaug <17722253+MariusStorhaug@users.noreply.github.com>
Copilot AI changed the title [WIP] Add path filter to Auto-Release workflow 🩹 [Patch]: Add path filter to Auto-Release workflow Feb 15, 2026
@MariusStorhaug Marius Storhaug (MariusStorhaug) marked this pull request as ready for review February 15, 2026 21:15
Copilot AI review requested due to automatic review settings February 15, 2026 21:15
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 paths filter to Auto-Release workflow limiting triggers to workflow and linter configuration files

@github-actions
Copy link

No Significant Changes Detected

This PR does not contain changes to files that would trigger a new release:

Path Description
src/** Module source code
README.md Documentation

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
@github-actions
Copy link

No Significant Changes Detected

This PR does not contain changes to files that would trigger a new release:

Path Description
src/** Module source code
README.md Documentation

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.

@github-actions
Copy link

No Significant Changes Detected

This PR does not contain changes to files that would trigger a new release:

Path Description
src/** Module source code
README.md Documentation

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
@github-actions
Copy link

No Significant Changes Detected

This PR does not contain changes to files that would trigger a new release:

Path Description
src/** Module source code
README.md Documentation

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.

@MariusStorhaug Marius Storhaug (MariusStorhaug) changed the title 🩹 [Patch]: Add path filter to Auto-Release workflow 🩹 [Patch]: Add path filter and rename Release workflow Feb 16, 2026
@MariusStorhaug Marius Storhaug (MariusStorhaug) changed the title 🩹 [Patch]: Add path filter and rename Release workflow ⚙️ [Maintenance]: Add path filter and rename Release workflow Feb 16, 2026
@MariusStorhaug Marius Storhaug (MariusStorhaug) changed the title ⚙️ [Maintenance]: Add path filter and rename Release workflow ⚙️ [Maintenance]: Add path filter and align Release workflow Feb 16, 2026
@MariusStorhaug Marius Storhaug (MariusStorhaug) merged commit 84d7bac into main Feb 16, 2026
48 checks passed
@MariusStorhaug Marius Storhaug (MariusStorhaug) deleted the copilot/add-path-filter-auto-release branch February 16, 2026 11:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add path filter to Auto-Release workflow to only trigger on significant file changes

2 participants