Skip to content

Enhances CI version update workflows#2002

Merged
arturcic merged 2 commits intomainfrom
fix/update-version
Mar 16, 2026
Merged

Enhances CI version update workflows#2002
arturcic merged 2 commits intomainfrom
fix/update-version

Conversation

@arturcic
Copy link
Copy Markdown
Member

Integrate a service account for secure repository checkout in CI versioning workflows. Refine GitVersion update logic to extract existing versions and derive major.minor.x tags for improved accuracy.

Fixed #2001

Dynamically extract current version and update to major.minor.x format across expanded file types.
Copilot AI review requested due to automatic review settings March 16, 2026 03:14
@sonarqubecloud
Copy link
Copy Markdown

Copy link
Copy Markdown
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

Adds automation to derive the current GitVersion versionSpec from CI and uses it in repository-dispatch workflows that update versions across docs/workflows, while also switching those workflows to a shared auth+checkout action.

Changes:

  • Add extract-version helper to read versionSpec from .github/workflows/ci.yml.
  • Update gitversion-published workflow to compute a Major.Minor.x tag and bulk-update references across repo files.
  • Update both version-bump workflows to use gittools/cicd/auth-checkout@main instead of actions/checkout.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 4 comments.

File Description
utilities.ps1 Adds extract-version for reading CI’s versionSpec.
.github/workflows/gitversion-published.yml Switches checkout action; derives old/new tags and bulk-updates references before committing.
.github/workflows/examples-version.yml Switches checkout action; improves logging around old/new tags before committing.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +65 to +68
Write-Error "Could not find versionSpec in $filePath"
}
} else {
Write-Error "File not found: $filePath"
@@ -13,17 +13,32 @@ defaults:

jobs:
update-gitversion-version:

$version = "${{ github.event.client_payload.newTag }}"

$oldTag = extract-version
permissions:
contents: write
if: ${{ github.event_name == 'repository_dispatch' }}
runs-on: ubuntu-24.04
@arturcic arturcic merged commit 63daa16 into main Mar 16, 2026
31 checks passed
@arturcic arturcic deleted the fix/update-version branch March 16, 2026 03:19
@mergify
Copy link
Copy Markdown
Contributor

mergify bot commented Mar 16, 2026

Thank you @arturcic for your contribution!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: Updating the versions in docs and workflows on new release

2 participants