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:
parent
c5acad73b4
commit
7c02c6b778
|
@ -455,7 +455,7 @@ def fix_macos_rpath(project):
|
||||||
subprocess.check_call(command, env=os.environ)
|
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
|
"""triggers a `workflow_dispatch` event to the specified workflow on its repo
|
||||||
|
|
||||||
repo: {user}/{repo} format
|
repo: {user}/{repo} format
|
||||||
|
@ -491,7 +491,7 @@ def trigger_docker_publish(target):
|
||||||
"kiwix-tools": "kiwix/kiwix-tools"}.get(target)
|
"kiwix-tools": "kiwix/kiwix-tools"}.get(target)
|
||||||
|
|
||||||
try:
|
try:
|
||||||
trigger_workflow(repo, workflow="docker.yml", ref="master",
|
trigger_workflow(repo, workflow="docker.yml", ref="main",
|
||||||
inputs={"version": version})
|
inputs={"version": version})
|
||||||
print_message("triggered docker workflow on {repo}", repo=repo)
|
print_message("triggered docker workflow on {repo}", repo=repo)
|
||||||
except Exception as exc:
|
except Exception as exc:
|
||||||
|
|
Loading…
Reference in New Issue