Skip to content

Commit 9767f1e

Browse files
authored
Hardcode module version to 0.0.1 in Copilot workflow (#2122)
1 parent e06a9ef commit 9767f1e

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

.github/workflows/copilot-setup-steps.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,11 @@ jobs:
9797
run: |
9898
Write-Host "Building SqlServerDsc module..." -ForegroundColor Green
9999
100+
# Hard-code versin due to how Coilot is switching branch (?) so gitversion fails.
101+
$ModuleVersion = '0.0.1'
102+
$env:ModuleVersion = '0.0.1'
103+
[System.Environment]::SetEnvironmentVariable('ModuleVersion','0.0.1', 'Machine')
104+
100105
# Build the module
101106
.\build.ps1 -Tasks 'build' -ErrorAction Stop
102107

CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
99

1010
- Added setup workflow for GitHub Copilot.
1111
- Switch the workflow to use Linux.
12-
- Skip verify gitversion after install due to problem with how Copilot switches branch directly after checkout, before setup is finsihed.
12+
- Skip verify GitVersion after install due to problem with how Copilot switches branch directly after checkout, before setup is finsihed.
13+
- Hardcode module version to 0.0.1 for the build step due to the problem with GitVersion.
1314

1415
### Changed
1516

0 commit comments

Comments
 (0)