print ref from inside script

This commit is contained in:
Andrew Welker 2020-11-24 16:19:05 -07:00
parent 243643d5c0
commit 0c87ca58ee
2 changed files with 2 additions and 1 deletions

View file

@ -4,6 +4,8 @@ $newVersion = [version]$latestVersion
$phase = "" $phase = ""
$newVersionString = "" $newVersionString = ""
Write-Host "GITHUB_REF: $($Env:GITHUB_REF)"
switch -regex ($Env:GITHUB_REF) { switch -regex ($Env:GITHUB_REF) {
'^refs\/pull\/*.' { '^refs\/pull\/*.' {
$phase = 'beta'; $phase = 'beta';

View file

@ -38,7 +38,6 @@ jobs:
- name: Set Version Number - name: Set Version Number
shell: powershell shell: powershell
run: | run: |
Write-Host "$($Env:GITHUB_REF)"
$version = ./.github/scripts/GenerateVersionNumber-2.0.0.ps1 $version = ./.github/scripts/GenerateVersionNumber-2.0.0.ps1
echo "VERSION=$version" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append echo "VERSION=$version" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append
# Use the version number to set the version of the assemblies # Use the version number to set the version of the assemblies