-
Notifications
You must be signed in to change notification settings - Fork 52
Description
I experienced this error (no twitter message sent, when it should be) when releasing test-rider using Cake.IntelliJ.Recipe (see the ubuntu run, there). I started analyzing for https://github.com/nils-a/Cake.IntelliJ.Recipe/issues/14.
While analyzing, I came across this in the logs:
BranchType: Unknown
which explains that the post was not made: build.cake sends all messages only for BranchType.Master (or BranchType.Release or BranchType.HotFix when BuildParameters.ShouldNotifyBetaReleases is set.)
I compared to Cake.7zip and Cake.asciidoctorj (both have appVeyor as preferredBuildProviderType so I never noticed the problem there...) and every build in GH-Actions that is based on a tag, has BranchType set to Unknown. ("Every" being based on my sample of three.)
Compared to builds on appVeyor this seems to be the error. Builds on appVeyor that are tag-builds have BranchType set corresponding to the branch being tagged. I.e. Master for the above mentioned cases of Cake.7zip and Cake.asciiddoctorj.
I think the culprit is context.BuildSystem().GitHubActions.Environment.Workflow.Ref in github-actions.cake: For tagged builds on GH-Actions, ref is the tag-name. I.e. refs/tags/0.2.0 for the release build of test-rider.