Fixed triggering workflows on zim-tools and kiwix-tools

Both the fallback and the passed ref were targeting the master branch of those repositories.
This triggers the workflow on their main branch and sets the default target branch to main as all our repositories use it.
This commit is contained in:
renaud gaudin 2023-03-28 07:58:41 +00:00
parent c5acad73b4
commit 7c02c6b778
1 changed files with 2 additions and 2 deletions

View File

@ -455,7 +455,7 @@ def fix_macos_rpath(project):
subprocess.check_call(command, env=os.environ)
def trigger_workflow(repo, workflow="docker.yml", ref="master", inputs=None):
def trigger_workflow(repo, workflow="docker.yml", ref="main", inputs=None):
"""triggers a `workflow_dispatch` event to the specified workflow on its repo
repo: {user}/{repo} format
@ -491,7 +491,7 @@ def trigger_docker_publish(target):
"kiwix-tools": "kiwix/kiwix-tools"}.get(target)
try:
trigger_workflow(repo, workflow="docker.yml", ref="master",
trigger_workflow(repo, workflow="docker.yml", ref="main",
inputs={"version": version})
print_message("triggered docker workflow on {repo}", repo=repo)
except Exception as exc: