mirror of
https://github.com/saltstack/salt.git
synced 2025-04-16 09:40:20 +00:00
Fix nightly builds on the master branch
Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>
This commit is contained in:
parent
bb88243ff9
commit
264a52b88a
1 changed files with 4 additions and 1 deletions
|
@ -718,7 +718,10 @@ def get_release_changelog_target(ctx: Context, event_name: str):
|
|||
if event_name == "pull_request":
|
||||
if gh_event["pull_request"]["base"]["ref"] in release_branches:
|
||||
release_changelog_target = "next-minor-release"
|
||||
|
||||
elif event_name == "schedule":
|
||||
branch_name = gh_event["repository"]["default_branch"]
|
||||
if branch_name in release_branches:
|
||||
release_changelog_target = "next-minor-release"
|
||||
else:
|
||||
for branch_name in release_branches:
|
||||
if branch_name in gh_event["ref"]:
|
||||
|
|
Loading…
Add table
Reference in a new issue