Skip to content

Commit

Permalink
updated workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
insomnious committed Jul 23, 2024
1 parent 0481d21 commit 7607840
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,18 +38,18 @@ jobs:
$version = [xml](Get-Content $csprojPath) | Select-Xml -XPath "//PropertyGroup/Version" | ForEach-Object { $_.Node.InnerXml }
}
$semver = $version -replace '(\d+\.\d+\.\d+)\.\d+', '$1' # Convert to semver by stripping the 4th part
echo "version=$version"
echo "semver=$semver"
echo "tag=v$semver"
echo "VERSION=$version" >> $GITHUB_OUTPUT
echo "SEMVER=$semver" >> $GITHUB_OUTPUT
echo "TAG=v$semver" >> $GITHUB_OUTPUT
echo "version = $version"
echo "semver = $semver"
echo "tag = v$semver"
echo "version=$version" >> $GITHUB_OUTPUT
echo "semver=$semver" >> $GITHUB_OUTPUT
echo "tag=v$semver" >> $GITHUB_OUTPUT
- name: Display Version and Tag
shell: pwsh
run: |
$version = '${{ steps.extract-version.outputs.VERSION }}'
$semver = '${{ steps.extract-version.outputs.SEMVER }}'
$tag = '${{ steps.extract-version.outputs.TAG }}'
$version = "${{ steps.extract-version.outputs.version }}"
$semver = "${{ steps.extract-version.outputs.semver }}"
$tag = "${{ steps.extract-version.outputs.tag }}"
Write-Host "Version: $version"
Write-Host "SemVer: $semver"
Write-Host "Tag: $tag"
Expand Down

0 comments on commit 7607840

Please sign in to comment.