MCPcopy Index your code
hub / github.com/questdb/questdb / trigger_github_action

Function trigger_github_action

github_run_action.py:37–47  ·  view source on GitHub ↗

Trigger GitHub Action on the specified branch and get the run ID.

(branch, action)

Source from the content-addressed store, hash-verified

35
36
37def trigger_github_action(branch, action):
38 """Trigger GitHub Action on the specified branch and get the run ID."""
39 result = subprocess.run(
40 ["gh", "workflow", "run", f"{action}.yml", "--ref", branch],
41 capture_output=True, text=True
42 )
43 if result.returncode != 0:
44 print(f"Could not trigger GitHub Action for branch: {branch}")
45 print(result.stderr)
46 sys.exit(1)
47 print(f"To view the status, run: `gh run list` and `gh run view <run-id>`")
48
49
50def parse_args():

Callers 1

mainFunction · 0.85

Calls 1

runMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…