mirror of
https://github.com/PepperDash/EssentialsPluginTemplate.git
synced 2026-04-12 03:56:55 +00:00
fix scripts to change master -> main
This commit is contained in:
parent
6b93162592
commit
4b4148af02
1 changed files with 2 additions and 2 deletions
4
.github/scripts/GenerateVersionNumber.ps1
vendored
4
.github/scripts/GenerateVersionNumber.ps1
vendored
|
|
@ -1,4 +1,4 @@
|
||||||
$latestVersions = $(git tag --merged origin/master)
|
$latestVersions = $(git tag --merged origin/main)
|
||||||
$latestVersion = [version]"0.0.0"
|
$latestVersion = [version]"0.0.0"
|
||||||
Foreach ($version in $latestVersions) {
|
Foreach ($version in $latestVersions) {
|
||||||
Write-Host $version
|
Write-Host $version
|
||||||
|
|
@ -17,7 +17,7 @@ $newVersion = [version]$latestVersion
|
||||||
$phase = ""
|
$phase = ""
|
||||||
$newVersionString = ""
|
$newVersionString = ""
|
||||||
switch -regex ($Env:GITHUB_REF) {
|
switch -regex ($Env:GITHUB_REF) {
|
||||||
'^refs\/heads\/master*.' {
|
'^refs\/heads\/main*.' {
|
||||||
$newVersionString = "{0}.{1}.{2}" -f $newVersion.Major, $newVersion.Minor, ($newVersion.Build + 1)
|
$newVersionString = "{0}.{1}.{2}" -f $newVersion.Major, $newVersion.Minor, ($newVersion.Build + 1)
|
||||||
}
|
}
|
||||||
'^refs\/heads\/feature\/*.' {
|
'^refs\/heads\/feature\/*.' {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue