This is an automated email from the ASF dual-hosted git repository.
yjc pushed a commit to branch manage-github-workflow
in repository https://gitbox.apache.org/repos/asf/incubator-superset.git
The following commit(s) were added to refs/heads/manage-github-workflow by this
push:
new 8d2f297 fixup! chore: add a script to cancel Github workflows
8d2f297 is described below
commit 8d2f2976cd4088d1f69848cb1ba5b676f2943053
Author: Jesse Yang <[email protected]>
AuthorDate: Fri Dec 4 20:23:02 2020 -0800
fixup! chore: add a script to cancel Github workflows
---
scripts/cancel_github_workflows.py | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/scripts/cancel_github_workflows.py
b/scripts/cancel_github_workflows.py
index 8539f37..27bdba5 100755
--- a/scripts/cancel_github_workflows.py
+++ b/scripts/cancel_github_workflows.py
@@ -152,8 +152,11 @@ def cancel_github_workflows(
if head_commit["id"] != last_sha:
last_sha = head_commit["id"]
print_commit(head_commit)
- cancel_run(repo, entry["id"])
- print(f"[Cancled] {entry['name']}")
+ try:
+ cancel_run(repo, entry["id"])
+ print(f"[Cancled] {entry['name']}")
+ except ClickException as error:
+ print(f"[Cancled] {entry['name']} [Error: {error.message}]")
print("")