Skip to content

Commit

Permalink
gitversion changes
Browse files Browse the repository at this point in the history
  • Loading branch information
PalmEmanuel committed Oct 18, 2024
1 parent a0d25ee commit 6e23c2c
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion .github/actions/build/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,21 @@ runs:
shell: pwsh
run: ./build.ps1 -ResolveDependency -Task noop

# Replace dot in semVer with dash, for Sampler validation in pre-release
- name: Format semVer for Sampler
id: formatSemVer
shell: pwsh
run: |
$SemVer = '${{ steps.gitversion.outputs.semVer }}'
# Replace last dot with dash for Sampler to accept it as pre-release, does not allow dots in pre-release name
$SemVer = $SemVer -replace '^([\d\.]+\-\w+)\.(\d+)$','$1-$2'
Add-Content -Path $env:GITHUB_OUTPUT -Value "formattedSemVer=$SemVer"
- name: Build module
shell: pwsh
run: ./build.ps1 -tasks pack
env:
ModuleVersion: ${{ env.gitVersion.NuGetVersionV2 }}
ModuleVersion: ${{ steps.formatSemVer.outputs.formattedSemVer }}

- name: Publish build artifacts
uses: actions/upload-artifact@v4
Expand Down

0 comments on commit 6e23c2c

Please sign in to comment.