mirror of
https://github.com/PepperDash/Essentials.git
synced 2026-02-15 12:44:58 +00:00
add string IsNullOrEmpty check
This commit is contained in:
2
.github/scripts/GenerateVersionNumber.ps1
vendored
2
.github/scripts/GenerateVersionNumber.ps1
vendored
@@ -17,7 +17,7 @@ Foreach ($version in $latestVersions) {
|
|||||||
$newVersion = [version]$latestVersion
|
$newVersion = [version]$latestVersion
|
||||||
$phase = ""
|
$phase = ""
|
||||||
$newVersionString = ""
|
$newVersionString = ""
|
||||||
if(!$Env:GITHUB_REF) {
|
if([string]::IsNullOrEmpty($Env:GITHUB_REF)) {
|
||||||
$phase = 'fork'
|
$phase = 'fork'
|
||||||
$newVersionString = "{0}.{1}.{2}-{3}-{4}" -f $newVersion.Major, $newVersion.Minor, ($newVersion.Build + 1), $phase, $Env:GITHUB_RUN_NUMBER
|
$newVersionString = "{0}.{1}.{2}-{3}-{4}" -f $newVersion.Major, $newVersion.Minor, ($newVersion.Build + 1), $phase, $Env:GITHUB_RUN_NUMBER
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
4
.github/workflows/docker.yml
vendored
4
.github/workflows/docker.yml
vendored
@@ -36,10 +36,6 @@ jobs:
|
|||||||
# Fetch all tags
|
# Fetch all tags
|
||||||
- name: Fetch tags
|
- name: Fetch tags
|
||||||
run: git fetch --tags
|
run: git fetch --tags
|
||||||
- name: print info
|
|
||||||
run: |
|
|
||||||
${{ toJson(github) }}
|
|
||||||
${{ toJson(env) }}
|
|
||||||
# Generate the appropriate version number
|
# Generate the appropriate version number
|
||||||
- name: Set Version Number
|
- name: Set Version Number
|
||||||
shell: powershell
|
shell: powershell
|
||||||
|
|||||||
Reference in New Issue
Block a user