fix workflow to change master -> main

This commit is contained in:
Andrew Welker
2020-08-20 10:56:03 -06:00
parent 4b4148af02
commit 10c23fcd40

View File

@@ -18,8 +18,8 @@ env:
VERSION: 0.0.0-buildtype-buildnumber VERSION: 0.0.0-buildtype-buildnumber
# Defaults to debug for build type # Defaults to debug for build type
BUILD_TYPE: Debug BUILD_TYPE: Debug
# Defaults to master as the release branch. Change as necessary # Defaults to main as the release branch. Change as necessary
RELEASE_BRANCH: master RELEASE_BRANCH: main
jobs: jobs:
Build_Project: Build_Project:
runs-on: windows-latest runs-on: windows-latest
@@ -38,7 +38,7 @@ jobs:
git submodule sync --recursive git submodule sync --recursive
git -c "http.extraheader=$auth_header" -c protocol.version=2 submodule update --init --force --recursive --depth=1 git -c "http.extraheader=$auth_header" -c protocol.version=2 submodule update --init --force --recursive --depth=1
# Set the BUILD_TYPE environment variable # 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: | run: |
if("$($Env:GITHUB_REF)".contains("$($Env:RELEASE_BRANCH)")) { if("$($Env:GITHUB_REF)".contains("$($Env:RELEASE_BRANCH)")) {
Write-Host "Setting build type to Release" Write-Host "Setting build type to Release"