mirror of https://github.com/progval/irctest.git
Fix comment
This commit is contained in:
parent
a7d3fadd8b
commit
ca9ec1733c
|
@ -16,7 +16,8 @@ if event_name.startswith("pull_request"):
|
||||||
elif event_name.startswith("push"):
|
elif event_name.startswith("push"):
|
||||||
is_push = True
|
is_push = True
|
||||||
elif event_name.startswith("schedule"):
|
elif event_name.startswith("schedule"):
|
||||||
# Don't publish; not all controllers run on scheduled events
|
# Don't publish; scheduled workflows run against the latest commit of every
|
||||||
|
# implementation, so they are likely to have failed tests for the wrong reasons
|
||||||
sys.exit(0)
|
sys.exit(0)
|
||||||
else:
|
else:
|
||||||
print("Unexpected event name:", event_name)
|
print("Unexpected event name:", event_name)
|
||||||
|
@ -53,6 +54,7 @@ elif is_push:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
|
print("Running", command)
|
||||||
proc = subprocess.run(command, capture_output=True)
|
proc = subprocess.run(command, capture_output=True)
|
||||||
|
|
||||||
output = proc.stdout.decode()
|
output = proc.stdout.decode()
|
||||||
|
@ -63,6 +65,8 @@ assert m
|
||||||
netlify_site_url = m.group(0)
|
netlify_site_url = m.group(0)
|
||||||
target_url = f"{netlify_site_url}/index.xhtml"
|
target_url = f"{netlify_site_url}/index.xhtml"
|
||||||
|
|
||||||
|
print("Published to", netlify_site_url)
|
||||||
|
|
||||||
|
|
||||||
def send_status() -> None:
|
def send_status() -> None:
|
||||||
statuses_url = github_event["repository"]["statuses_url"].format(sha=sha)
|
statuses_url = github_event["repository"]["statuses_url"].format(sha=sha)
|
||||||
|
|
Loading…
Reference in New Issue