From f0617f21166d5a80720db85d813ae84aa152db5c Mon Sep 17 00:00:00 2001 From: Andrew Welker Date: Thu, 20 Aug 2020 10:31:17 -0600 Subject: [PATCH 01/11] update submodule to 1.6.1 --- EssentialsBuilds | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/EssentialsBuilds b/EssentialsBuilds index 855dccd..e29501b 160000 --- a/EssentialsBuilds +++ b/EssentialsBuilds @@ -1 +1 @@ -Subproject commit 855dccd0d41aac272512f58d6bcd4764307bbb14 +Subproject commit e29501be5df2c587d1b6221e60565e38d21e369d From 05ba06661c5bfc636756f0512df8d46780a6fa8b Mon Sep 17 00:00:00 2001 From: Andrew Welker Date: Thu, 20 Aug 2020 10:31:33 -0600 Subject: [PATCH 02/11] Update Join map and bridging methods --- .../EssentialsPluginTemplateBridge.cs | 57 ------------------- .../EssentialsPluginTemplateJoinMap.cs | 27 +++++++++ 2 files changed, 27 insertions(+), 57 deletions(-) delete mode 100644 PDT.EssentialsPluginTemplate.EPI/EssentialsPluginTemplateBridge.cs create mode 100644 PDT.EssentialsPluginTemplate.EPI/EssentialsPluginTemplateJoinMap.cs diff --git a/PDT.EssentialsPluginTemplate.EPI/EssentialsPluginTemplateBridge.cs b/PDT.EssentialsPluginTemplate.EPI/EssentialsPluginTemplateBridge.cs deleted file mode 100644 index e26e2d7..0000000 --- a/PDT.EssentialsPluginTemplate.EPI/EssentialsPluginTemplateBridge.cs +++ /dev/null @@ -1,57 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; - -using Crestron.SimplSharp; -using Crestron.SimplSharpPro.DeviceSupport; - -using PepperDash.Core; -using PepperDash.Essentials.Core; -using PepperDash.Essentials.Bridges; - -using Newtonsoft.Json; - -namespace EssentialsPluginTemplateEPI -{ - public static class EssentialsPluginTemplateBridge - { - public static void LinkToApiExt(this EssentialsPluginFactory DspDevice, BasicTriList trilist, uint joinStart, string joinMapKey) - { - // Construct the default join map - EssentialsPluginTemplateBridgeJoinMap joinMap = new EssentialsPluginTemplateBridgeJoinMap(); - - // Attempt to get a custom join map if specified in config - var joinMapSerialized = JoinMapHelper.GetJoinMapForDevice(joinMapKey); - - // If we find a custom join map, deserialize it - if (!string.IsNullOrEmpty(joinMapSerialized)) - joinMap = JsonConvert.DeserializeObject(joinMapSerialized); - - // Offset the joins based on the join start - joinMap.OffsetJoinNumbers(joinStart); - - - // Set all your join actions here - - - // Link all your feedbacks to joins here - - } - } - public class EssentialsPluginTemplateBridgeJoinMap : JoinMapBase - { - // Specify your joins here - - - public EssentialsPluginTemplateBridgeJoinMap() - { - // Set the values of your joins here - } - - public override void OffsetJoinNumbers(uint joinStart) - { - // Offset the joins from joinStart as applicable - } - } -} \ No newline at end of file diff --git a/PDT.EssentialsPluginTemplate.EPI/EssentialsPluginTemplateJoinMap.cs b/PDT.EssentialsPluginTemplate.EPI/EssentialsPluginTemplateJoinMap.cs new file mode 100644 index 0000000..4272a97 --- /dev/null +++ b/PDT.EssentialsPluginTemplate.EPI/EssentialsPluginTemplateJoinMap.cs @@ -0,0 +1,27 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using Crestron.SimplSharp; +using PepperDash.Essentials.Core; + +namespace PDT.EssentialsPluginTemplate.EPI +{ + public class EssentialsPluginTemplateBridgeJoinMap : JoinMapBaseAdvanced + { + [JoinName("IsOnline")] + public JoinDataComplete IsOnline = new JoinDataComplete(new JoinData {JoinNumber = 1, JoinSpan = 1}, + new JoinMetadata + { + Description = "Device is Online", + JoinType = eJoinType.Digital, + JoinCapabilities = eJoinCapabilities.ToSIMPL + }); + + + public EssentialsPluginTemplateBridgeJoinMap(uint joinStart):base(joinStart, typeof(EssentialsPluginTemplateBridgeJoinMap)) + { + + } + } +} \ No newline at end of file From d590987143d0e60232b2d2fc582e2efe9bb433d3 Mon Sep 17 00:00:00 2001 From: Andrew Welker Date: Thu, 20 Aug 2020 10:33:20 -0600 Subject: [PATCH 03/11] stop tracking .projectinfo files --- .gitignore | 1 + .../PDT.EssentialsPluginTemplate.projectinfo | Bin 1891 -> 0 bytes 2 files changed, 1 insertion(+) delete mode 100644 PDT.EssentialsPluginTemplate.EPI/PDT.EssentialsPluginTemplate.projectinfo diff --git a/.gitignore b/.gitignore index e8d2744..314b11b 100644 --- a/.gitignore +++ b/.gitignore @@ -355,3 +355,4 @@ MigrationBackup/ # Crestron Zip Files *.cplz *.clz +*.projectinfo diff --git a/PDT.EssentialsPluginTemplate.EPI/PDT.EssentialsPluginTemplate.projectinfo b/PDT.EssentialsPluginTemplate.EPI/PDT.EssentialsPluginTemplate.projectinfo deleted file mode 100644 index acdbdf8f5cab1846af2602a290df71e42cfcb017..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1891 zcmV-p2b}mHiwFP!000040PVd8U>r%7B_=Oz%6orG^-9;^bfE}=m|e(^`YTQU3S(MP)yS?+^(asLFn^U`!N5Ajy``xO3TP!cqr$wDl+o~?|=J)-5Uq1bPf8QY# z@a<*VjUqu%Dh(tLrz_v#Olsb@S09 zBRzW`{gTl~Ulhw?v0gkY>cv%7=RZj;iVBq49q;Tsr2p?dq%OZ)x2tvgGHZVp8J@cN zB3l;cdDA)^@6o5XWC%l^FS25JOzjqv^4bB~r*FIoy%E@~Ea{Da9Q5Db!Glj9eAJ^_ zmt5b@8W8H!gPnuP{{88}^#1I@bbog5;QrouzIU*nXZP;yPtU2POyg}3($VQ0+_w4i zYMPZlyYu#*Oe}QZEMHCufsY=2&&<;OaF$MLVurd}j$ao9;q^SLS0wY}r}SOfA9XoEIa>n_urqo4PN;`I^km?`PBV>|kd)y*HU0JUHLm zo#m5*hr7Fb2b0~|ZRX2>3?}IofWMJRGM)dwcxE2lYGzK`d0sE`maN}my)33#ONy@v zXY1al`KO=W+kg0A_u>8B{hd7j^n7=+pHHUu@15Vzvj?}Bt&QCTGkA;6zKI#!h|vFw zXZ7G#v-)fe`xVaO-ZY{L-OsX}hX>~m4yOB)Pp1z*y_cQu&CYM5BLlF(tla|m zH!*7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20 Aug 2020 10:40:28 -0600 Subject: [PATCH 04/11] update to new plugin factory method --- .../EssentailsPluginTemplate.cs | 52 ------------------- .../EssentailsPluginTemplateFactory.cs | 43 +++++++++++++++ .../EssentialsPluginTemplateDevice.cs | 39 +++++++++----- 3 files changed, 69 insertions(+), 65 deletions(-) delete mode 100644 PDT.EssentialsPluginTemplate.EPI/EssentailsPluginTemplate.cs create mode 100644 PDT.EssentialsPluginTemplate.EPI/EssentailsPluginTemplateFactory.cs diff --git a/PDT.EssentialsPluginTemplate.EPI/EssentailsPluginTemplate.cs b/PDT.EssentialsPluginTemplate.EPI/EssentailsPluginTemplate.cs deleted file mode 100644 index 0112c01..0000000 --- a/PDT.EssentialsPluginTemplate.EPI/EssentailsPluginTemplate.cs +++ /dev/null @@ -1,52 +0,0 @@ -using System; -using Crestron.SimplSharp; // For Basic SIMPL# Classes -using Crestron.SimplSharpPro; // For Basic SIMPL#Pro classes - -using Newtonsoft.Json; -using Newtonsoft.Json.Linq; - -using PepperDash.Essentials; -using PepperDash.Essentials.Core; -using PepperDash.Essentials.Core.Config; -using PepperDash.Core; - -namespace EssentialsPluginTemplateEPI -{ - /// - /// This class contains the necessary properties and static methods required to function as an Essentials Plugin - /// - public class EssentialsPluginFactory - { - /// - /// This string is used to define the minimum version of the - /// Essentials Framework required for this plugin - /// - public static string MinimumEssentialsFrameworkVersion = "1.4.31"; - - /// - /// This method will get called by Essentials when this plugin is loaded. - /// Use it to add factory methods for all new Device types defined in this plugin - /// - public static void LoadPlugin() - { - PepperDash.Essentials.Core.DeviceFactory.AddFactoryForType("EssentialsPluginTemplate", EssentialsPluginFactory.BuildDevice); - - // Add additional factories for each type here - } - - /// - /// Builds an instance of the device type. There should be method like this defined for each device type your plugin needs - /// to be able to build - /// - /// The device configuration - /// The device - public static EssentialsPluginTemplateDevice BuildDevice(DeviceConfig dc) - { - var config = JsonConvert.DeserializeObject(dc.Properties.ToString()); - var newDevice = new EssentialsPluginTemplateDevice(dc.Key, dc.Name, config); - return newDevice; - } - - } -} - diff --git a/PDT.EssentialsPluginTemplate.EPI/EssentailsPluginTemplateFactory.cs b/PDT.EssentialsPluginTemplate.EPI/EssentailsPluginTemplateFactory.cs new file mode 100644 index 0000000..79cfcf9 --- /dev/null +++ b/PDT.EssentialsPluginTemplate.EPI/EssentailsPluginTemplateFactory.cs @@ -0,0 +1,43 @@ +using System; +using System.Collections.Generic; +using Crestron.SimplSharp; // For Basic SIMPL# Classes +using Crestron.SimplSharpPro; // For Basic SIMPL#Pro classes + +using Newtonsoft.Json; +using Newtonsoft.Json.Linq; + +using PepperDash.Essentials; +using PepperDash.Essentials.Core; +using PepperDash.Essentials.Core.Config; +using PepperDash.Core; + +namespace EssentialsPluginTemplateEPI +{ + /// + /// This class contains the necessary properties and methods required to function as an Essentials Plugin + /// + public class EssentialsPluginFactory:EssentialsPluginDeviceFactory + { + public EssentialsPluginFactory() + { + // This string is used to define the minimum version of the + // Essentials Framework required for this plugin + MinimumEssentialsFrameworkVersion = "1.6.1"; + + //The strings defined in this list will be used in the configuration file to build the device in this plugin. + TypeNames = new List {"essentialsPluginTemplateDevice"}; + } + + #region Overrides of EssentialsDeviceFactory + + public override EssentialsDevice BuildDevice(DeviceConfig dc) + { + var config = dc.Properties.ToObject(); + var newDevice = new EssentialsPluginTemplateDevice(dc.Key, dc.Name, config); + return newDevice; + } + + #endregion + } +} + diff --git a/PDT.EssentialsPluginTemplate.EPI/EssentialsPluginTemplateDevice.cs b/PDT.EssentialsPluginTemplate.EPI/EssentialsPluginTemplateDevice.cs index 9cfcd62..dda96b2 100644 --- a/PDT.EssentialsPluginTemplate.EPI/EssentialsPluginTemplateDevice.cs +++ b/PDT.EssentialsPluginTemplate.EPI/EssentialsPluginTemplateDevice.cs @@ -1,22 +1,16 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using Crestron.SimplSharp; -using Crestron.SimplSharpPro.DeviceSupport; - -using PepperDash.Essentials; +using Crestron.SimplSharpPro.DeviceSupport; +using Newtonsoft.Json; +using PDT.EssentialsPluginTemplate.EPI; using PepperDash.Essentials.Core; -using PepperDash.Essentials.Core.Config; +using PepperDash.Essentials.Core.Bridges; using PepperDash.Core; -using PepperDash.Essentials.Bridges; namespace EssentialsPluginTemplateEPI { /// /// Example of a plugin device /// - public class EssentialsPluginTemplateDevice : Device, IBridge + public class EssentialsPluginTemplateDevice : EssentialsDevice, IBridgeAdvanced { /// /// Device Constructor. Called by BuildDevice @@ -46,9 +40,28 @@ namespace EssentialsPluginTemplateEPI /// /// /// - public void LinkToApi(BasicTriList trilist, uint joinStart, string joinMapKey) + public void LinkToApi(BasicTriList trilist, uint joinStart, string joinMapKey, EiscApiAdvanced bridge) { - this.LinkToApi(trilist, joinStart, joinMapKey); + // Construct the default join map + var joinMap = new EssentialsPluginTemplateBridgeJoinMap(joinStart); + + // Attempt to get a custom join map if specified in config + var joinMapSerialized = JoinMapHelper.GetJoinMapForDevice(joinMapKey); + + // If we find a custom join map, deserialize it + if (!string.IsNullOrEmpty(joinMapSerialized)) + joinMap = JsonConvert.DeserializeObject(joinMapSerialized); + + //Checking if the bridge is null allows for backwards compatability with configurations that use EiscApi instead of EiscApiAdvanced + if (bridge != null) + { + bridge.AddJoinMap(Key, joinMap); + } + + // Set all your join actions here + + + // Link all your feedbacks to joins here } } } \ No newline at end of file From d28108a132eb1673efe1ee3b2a857626d9b4b884 Mon Sep 17 00:00:00 2001 From: Andrew Welker Date: Thu, 20 Aug 2020 10:40:43 -0600 Subject: [PATCH 05/11] add .suo files to .gitignore --- .gitignore | 1 + .../PDT.EssentialsPluginTemplate.EPI.suo | Bin 22528 -> 23552 bytes 2 files changed, 1 insertion(+) diff --git a/.gitignore b/.gitignore index 314b11b..f218fa0 100644 --- a/.gitignore +++ b/.gitignore @@ -356,3 +356,4 @@ MigrationBackup/ *.cplz *.clz *.projectinfo +*.suo diff --git a/PDT.EssentialsPluginTemplate.EPI/PDT.EssentialsPluginTemplate.EPI.suo b/PDT.EssentialsPluginTemplate.EPI/PDT.EssentialsPluginTemplate.EPI.suo index ad4bc104a0a3be5928a263b35e941a46b3399a4f..a6dd2adce2666f03d2a07f2d93e749e0acc25d16 100644 GIT binary patch delta 459 zcmZqJz}T>ZaYFzTqt4_&HucFBOd>4W3=9mDCosvd{`>#`|G&)}nRYYsIjmg3E>M1r zkr^oGptiY+rHxsj{6@vg54U_A=0vc$c*(!@n|zSNV6y`UGcPZL5Kx&Q5CaYPKlvhy z%H$GJe_jS@polP%=;kk?=UJE-WhOiN=uiG4=<`9St<{^EItlTl$ZqpUD*B11XQo*ag3AXzl|yt4eH5E+)K zK!;9N2r=QE24qYJ;u%2vZ)4zm#zkRFlN&tb7!80vQ=EK2%7m>QC}qMpd1AO156H(b z02IidY{0@wgdi~J)Lnqqmoa2ABm-$ThD0D;0(N>O&}+#I#Xvi53b;OF0=nLQ@`CUL J6s*7@1pq7ypMn4Y delta 203 zcmZqJ!Pu~YaYFzT%fJ8s|4$BKvVbrqFv)BT31OVXlEcUFq)O}HqpOU}3=9kos++4= z+L#5BY8p;EF&cR7{usE*NwVtEj5<&S6<52ENIT qKKh%#c%I>$q$4qTk*dgKyC9KCAu=pL2mha}5Mr`1WDVn@FeU)uaYq*b From dd52a4e613d6ec3a2fd890d86045c247ca188bef Mon Sep 17 00:00:00 2001 From: Andrew Welker Date: Thu, 20 Aug 2020 10:41:10 -0600 Subject: [PATCH 06/11] Fix file name spelling --- ...luginTemplateFactory.cs => EssentialsPluginTemplateFactory.cs} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename PDT.EssentialsPluginTemplate.EPI/{EssentailsPluginTemplateFactory.cs => EssentialsPluginTemplateFactory.cs} (100%) diff --git a/PDT.EssentialsPluginTemplate.EPI/EssentailsPluginTemplateFactory.cs b/PDT.EssentialsPluginTemplate.EPI/EssentialsPluginTemplateFactory.cs similarity index 100% rename from PDT.EssentialsPluginTemplate.EPI/EssentailsPluginTemplateFactory.cs rename to PDT.EssentialsPluginTemplate.EPI/EssentialsPluginTemplateFactory.cs From c67e67b94226ab7ea0b3774c74533d1f1b6b83ca Mon Sep 17 00:00:00 2001 From: Andrew Welker Date: Thu, 20 Aug 2020 10:49:04 -0600 Subject: [PATCH 07/11] fixing some files in the project file --- .../PDT.EssentialsPluginTemplate.EPI.csproj | 4 ++-- .../PDT.EssentialsPluginTemplate.EPI.suo | Bin 23552 -> 0 bytes 2 files changed, 2 insertions(+), 2 deletions(-) delete mode 100644 PDT.EssentialsPluginTemplate.EPI/PDT.EssentialsPluginTemplate.EPI.suo diff --git a/PDT.EssentialsPluginTemplate.EPI/PDT.EssentialsPluginTemplate.EPI.csproj b/PDT.EssentialsPluginTemplate.EPI/PDT.EssentialsPluginTemplate.EPI.csproj index 5a9ae47..e3bae95 100644 --- a/PDT.EssentialsPluginTemplate.EPI/PDT.EssentialsPluginTemplate.EPI.csproj +++ b/PDT.EssentialsPluginTemplate.EPI/PDT.EssentialsPluginTemplate.EPI.csproj @@ -91,9 +91,9 @@ - - + + diff --git a/PDT.EssentialsPluginTemplate.EPI/PDT.EssentialsPluginTemplate.EPI.suo b/PDT.EssentialsPluginTemplate.EPI/PDT.EssentialsPluginTemplate.EPI.suo deleted file mode 100644 index a6dd2adce2666f03d2a07f2d93e749e0acc25d16..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 23552 zcmeI4dvIJ;9mnssP>LuN3KeK6p+>CGu1T9mTV74FNgt$bAfZ%^E!(_E8=9C$lR^>j zi3;KiVH|OM05hWF4F5Pj{(}FUQHy`zX#Yb0V01<)jN|Bx()jtFb5HhW_wL=h$u`}E zo}KUByZ4@R&pE&Id!64ocV9Vi>1*GA@#;T&S?N}9v3Gjs_k%0JRp4r{608E(fYsnyPzA07H-Ha;8^H&`^!ij#DsBDI_bymA`G>?}GHul$lRBtz*gNFyp!R;wTD>WI zBj)!CG?1%b$C$+o?<#Mt*WlH8%^Yj^-t4XCdjsb+oYnG4adu#)m7P#14fX#f!X5-c`oh|uR3d)tv z)fYX>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@;$fSd^Y3&8xFfd@7BPCWg6up?4g@_+qZD+D<(~{tPBw z3z8*nfu*jNBBnr42J}uvSYM0Tr(Aj&=)_8D%(Va*oPp(zmEQFzXGw@VQw@$u{Y;-q zBNe-$<0RCy`yTDy@-V*d%2RJS@j@;KR00P(%@Ia*y+IWwfv$`!N-;W6yQ2EhH#UxB zce@tWI?h9>ESsp^lG*lBlB86b{+9M2MSEuIoBF8!y;HQG7SO|c9p*`7;(S3`r1?>a zmLTYz>g}sy=%BJe8dS1hsGSsHeGlV+V4us!hpeVqrSVGDKPAcd+3`lNruMMDMEkO) z(SExZ(u)!Agta!z^HCd}{yejOwj#V?t+HO7+M%Q|KD$1^YFZK2&Ul`L`rznU3BFi% zghNsF@cD*%rKAyx(=)xtH{Z3B(yt(D|M-;&YZ=4V^$P83KHIxmXO5`_0?LXE&$wGP3b__Hxaf1C`nCUDI=h(tr-#Y! zR;cVwqw?HOlpB-wyqCUxyw<&IAD7-yG~7}$Ei;iTFOOm_VW#8wl1lf>mXYXJ6pPa*( zDT?~V?S3pScOlu*R)_zT$i_!`BT@HC?;FP7Lty_=D|t>kql3eDC5Kr@Y2&5uN}6Tf zqt;tv+M{4+cpFMajfHUlpp7wt`yLIkZeiSJ5e@i;i- zTwSmL8NLAO93kQqD3GVv`U^a+=-ZWCf6(`DGy6;IKOG*Mv7&!k*7~} Date: Thu, 20 Aug 2020 10:50:17 -0600 Subject: [PATCH 08/11] fix build workflow --- .github/workflows/docker.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index 08c269d..12e5a06 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -6,7 +6,7 @@ on: - feature/* - hotfix/* - release/* - - master + - main - development env: @@ -59,6 +59,11 @@ jobs: run: | Write-Output ${{ env.VERSION }} ./.github/scripts/UpdateAssemblyVersion.ps1 ${{ env.VERSION }} + - name: Login to Docker + uses: azure/docker-login@v1 + with: + username: ${{ secrets.DOCKER_USERNAME }} + password: ${{ secrets.DOCKER_TOKEN }} # Build the solutions in the docker image - name: Build Solution shell: powershell From 6b9316259272f9eb1955c8a77396fcbd99eb8dd5 Mon Sep 17 00:00:00 2001 From: Andrew Welker Date: Thu, 20 Aug 2020 10:52:34 -0600 Subject: [PATCH 09/11] fix docker hub secrets --- .github/workflows/docker.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index 12e5a06..7a953a4 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -62,8 +62,8 @@ jobs: - name: Login to Docker uses: azure/docker-login@v1 with: - username: ${{ secrets.DOCKER_USERNAME }} - password: ${{ secrets.DOCKER_TOKEN }} + username: ${{ secrets.DOCKERHUB_USER }} + password: ${{ secrets.DOCKERHUB_PASSWORD }} # Build the solutions in the docker image - name: Build Solution shell: powershell From 4b4148af02c1470ce1f5cb135dae476ab9608a8c Mon Sep 17 00:00:00 2001 From: Andrew Welker Date: Thu, 20 Aug 2020 10:54:08 -0600 Subject: [PATCH 10/11] fix scripts to change master -> main --- .github/scripts/GenerateVersionNumber.ps1 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/scripts/GenerateVersionNumber.ps1 b/.github/scripts/GenerateVersionNumber.ps1 index d05aecd..052d48a 100644 --- a/.github/scripts/GenerateVersionNumber.ps1 +++ b/.github/scripts/GenerateVersionNumber.ps1 @@ -1,4 +1,4 @@ -$latestVersions = $(git tag --merged origin/master) +$latestVersions = $(git tag --merged origin/main) $latestVersion = [version]"0.0.0" Foreach ($version in $latestVersions) { Write-Host $version @@ -17,7 +17,7 @@ $newVersion = [version]$latestVersion $phase = "" $newVersionString = "" switch -regex ($Env:GITHUB_REF) { - '^refs\/heads\/master*.' { + '^refs\/heads\/main*.' { $newVersionString = "{0}.{1}.{2}" -f $newVersion.Major, $newVersion.Minor, ($newVersion.Build + 1) } '^refs\/heads\/feature\/*.' { From 10c23fcd409a7481ed3cc93a1615dffd8b15cfde Mon Sep 17 00:00:00 2001 From: Andrew Welker Date: Thu, 20 Aug 2020 10:56:03 -0600 Subject: [PATCH 11/11] fix workflow to change master -> main --- .github/workflows/docker.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index 7a953a4..bfff1c9 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -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"