GIthub CI. How to configure GitHubActions to be triggered only when its master branch with tag #950
Answered
by
ScarletKuro
ScarletKuro
asked this question in
Q&A
-
Hello, I tied this [GitHubActions(
"release",
GitHubActionsImage.UbuntuLatest,
FetchDepth = 0,
OnPushBranches = new []{ "main", "master" },
OnPushTags = new[] { @"\d+\.\d+\.\d+" },
PublishArtifacts = true,
InvokedTargets = new[] { nameof(Push) },
ImportSecrets = new[] { nameof(NuGetApiKey) })] But it gets trigger also when pushed to master / main without a tag. |
Beta Was this translation helpful? Give feedback.
Answered by
ScarletKuro
Jun 24, 2022
Replies: 1 comment 4 replies
-
Okay, nvm, as I understood tags have no relation to branches, so it's not possible. |
Beta Was this translation helpful? Give feedback.
4 replies
Answer selected by
ScarletKuro
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Okay, nvm, as I understood tags have no relation to branches, so it's not possible.