mirror of
https://github.com/PepperDash/Essentials.git
synced 2026-08-31 19:08:29 +00:00
feat: added in some branch logging to test
This commit is contained in:
parent
a83ba444d3
commit
64b01e03a7
1 changed files with 7 additions and 1 deletions
8
.github/workflows/docker.yml
vendored
8
.github/workflows/docker.yml
vendored
|
|
@ -34,6 +34,8 @@ jobs:
|
|||
$phase = ""
|
||||
$newVersionString = ""
|
||||
|
||||
Write-Host "Current GitHub Ref: $Env:GITHUB_REF"
|
||||
|
||||
switch -regex ($Env:GITHUB_REF) {
|
||||
'^refs\/pull\/*.' {
|
||||
$phase = 'beta';
|
||||
|
|
@ -57,7 +59,11 @@ jobs:
|
|||
$phase = 'beta'
|
||||
$newVersionString = "{0}-{1}-{2}" -f $newVersion, $phase, $Env:GITHUB_RUN_NUMBER
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Write-Host "Version to be used: $newVersionString"
|
||||
Write-Host "Build Phase: $phase"
|
||||
|
||||
echo "version=$newVersionString" | Out-File -FilePath $env:GITHUB_OUTPUT -Encoding utf8 -Append
|
||||
- name: Setup MS Build
|
||||
uses: microsoft/setup-msbuild@v1.1
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue