We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
publish_ci
1 parent 873fd78 commit defa00eCopy full SHA for defa00e
.github/workflows/publish_ci.yml
@@ -20,12 +20,13 @@ jobs:
20
21
- name: Set Build Version
22
run: |
23
+ $documentName = "Directory.Build.props"
24
$File = (
- Select-Xml -XPath "/Project/PropertyGroup[@Label='NuGet']/Version" -Path "Directory.Build.props"
25
+ Select-Xml -XPath "/Project/PropertyGroup[@Label='NuGet']/Version" -Path $documentName
26
)[0].Node
27
$version = "$($File.InnerText)-ci-$Env:GITHUB_RUN_ID"
28
$File.InnerText = $version
- $File.OwnerDocument.Save((Join-Path $PWD.ProviderPath Directory.Build.props))
29
+ $File.OwnerDocument.Save((Join-Path $PWD.ProviderPath $documentName))
30
echo "VERSION=$version" | Out-File -FilePath $Env:GITHUB_ENV -Encoding utf8 -Append
31
shell: pwsh
32
0 commit comments