mirror of
https://github.com/PepperDash/Essentials.git
synced 2026-08-31 19:08:29 +00:00
print ref from inside script
This commit is contained in:
parent
243643d5c0
commit
0c87ca58ee
2 changed files with 2 additions and 1 deletions
|
|
@ -4,6 +4,8 @@ $newVersion = [version]$latestVersion
|
|||
$phase = ""
|
||||
$newVersionString = ""
|
||||
|
||||
Write-Host "GITHUB_REF: $($Env:GITHUB_REF)"
|
||||
|
||||
switch -regex ($Env:GITHUB_REF) {
|
||||
'^refs\/pull\/*.' {
|
||||
$phase = 'beta';
|
||||
|
|
|
|||
1
.github/workflows/Build Essentials.yml
vendored
1
.github/workflows/Build Essentials.yml
vendored
|
|
@ -38,7 +38,6 @@ jobs:
|
|||
- name: Set Version Number
|
||||
shell: powershell
|
||||
run: |
|
||||
Write-Host "$($Env:GITHUB_REF)"
|
||||
$version = ./.github/scripts/GenerateVersionNumber-2.0.0.ps1
|
||||
echo "VERSION=$version" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append
|
||||
# Use the version number to set the version of the assemblies
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue