Skip to content
Snippets Groups Projects
Verified Commit 71d93e64 authored by Tomas Krizek's avatar Tomas Krizek
Browse files

ci: improve GH actions error handling

parent 40eb9dce
Branches
Tags
1 merge request!1106ci: improve GH actions error handling
Pipeline #73241 passed with stages
in 6 minutes and 45 seconds
......@@ -32,8 +32,9 @@ while time.time() < end_time:
conclusion = run['conclusion']
html_url = run['html_url']
commit_sha = run['head_sha']
except KeyError:
pass
except (KeyError, IndexError):
time.sleep(POLL_DELAY)
continue
if commit_sha != sys.argv[2]:
exit("Fetched invalid GH Action: commit mismatch. Re-run or push again?")
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment