mirror of
https://github.com/PepperDash/EssentialsPluginTemplate.git
synced 2026-01-11 19:44:38 +00:00
fix workflow to change master -> main
This commit is contained in:
6
.github/workflows/docker.yml
vendored
6
.github/workflows/docker.yml
vendored
@@ -18,8 +18,8 @@ env:
|
||||
VERSION: 0.0.0-buildtype-buildnumber
|
||||
# Defaults to debug for build type
|
||||
BUILD_TYPE: Debug
|
||||
# Defaults to master as the release branch. Change as necessary
|
||||
RELEASE_BRANCH: master
|
||||
# Defaults to main as the release branch. Change as necessary
|
||||
RELEASE_BRANCH: main
|
||||
jobs:
|
||||
Build_Project:
|
||||
runs-on: windows-latest
|
||||
@@ -38,7 +38,7 @@ jobs:
|
||||
git submodule sync --recursive
|
||||
git -c "http.extraheader=$auth_header" -c protocol.version=2 submodule update --init --force --recursive --depth=1
|
||||
# Set the BUILD_TYPE environment variable
|
||||
- name: Set Build to Release if triggered from Master
|
||||
- name: Set Build to Release if triggered from main
|
||||
run: |
|
||||
if("$($Env:GITHUB_REF)".contains("$($Env:RELEASE_BRANCH)")) {
|
||||
Write-Host "Setting build type to Release"
|
||||
|
||||
Reference in New Issue
Block a user