diff --git a/.github/workflows/code-analysis-built-module.yml b/.github/workflows/code-analysis-built-module.yml index 4cef1371dc..2ca38ceb94 100644 --- a/.github/workflows/code-analysis-built-module.yml +++ b/.github/workflows/code-analysis-built-module.yml @@ -25,7 +25,6 @@ jobs: shell: powershell run: | dotnet tool install --global GitVersion.Tool --version 5.* - dotnet-gitversion - name: Run GitVersion shell: powershell run: | diff --git a/.github/workflows/code-analysis.yml b/.github/workflows/code-analysis.yml index 67f97ca4b3..74ca691989 100644 --- a/.github/workflows/code-analysis.yml +++ b/.github/workflows/code-analysis.yml @@ -25,7 +25,6 @@ jobs: shell: powershell run: | dotnet tool install --global GitVersion.Tool --version 5.* - dotnet-gitversion - name: Run GitVersion shell: powershell run: | diff --git a/.github/workflows/copilot-setup-steps.yml b/.github/workflows/copilot-setup-steps.yml index c28325f8af..63f5f44c0a 100644 --- a/.github/workflows/copilot-setup-steps.yml +++ b/.github/workflows/copilot-setup-steps.yml @@ -205,8 +205,6 @@ jobs: - name: Verify GitVersion shell: pwsh run: | - Write-Host 'Running GitVersion to determine semantic version...' - dotnet-gitversion Write-Host 'Running GitVersion to determine semantic version (parsing to PowerShell object)...' dotnet-gitversion | ConvertFrom-Json diff --git a/CHANGELOG.md b/CHANGELOG.md index 7f068b5409..ae57f26f19 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -88,6 +88,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Changed +- SqlServerDsc + - Updated GitVersion.yml feature branch regex pattern to use anchor `^f(eature(s)?)?[\/-]` + for more precise branch name matching. - Refactored GitHub Copilot workflow setup to be module-agnostic via MODULE_NAME environment variable, includes full-history detection, uses idempotent .NET tool install, and adds Linux dependency handling ([issue #2127](https://github.com/dsccommunity/SqlServerDsc/issues/2127)). diff --git a/GitVersion.yml b/GitVersion.yml index c06e29eafe..d277c2a34d 100644 --- a/GitVersion.yml +++ b/GitVersion.yml @@ -14,7 +14,7 @@ branches: feature: tag: useBranchName increment: Minor - regex: f(eature(s)?)?[\/-] + regex: ^f(eature(s)?)?[\/-] source-branches: ['master'] hotfix: tag: fix diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 221d53f4a1..784c393968 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -30,7 +30,6 @@ stages: steps: - pwsh: | dotnet tool install --global GitVersion.Tool --version 5.* - dotnet-gitversion $gitVersionObject = dotnet-gitversion | ConvertFrom-Json $gitVersionObject.PSObject.Properties.ForEach{ Write-Host -Object "Setting Task Variable '$($_.Name)' with value '$($_.Value)'."