Skip to content
Snippets Groups Projects

ci: improve GH actions error handling

Merged Tomas Krizek requested to merge ci-gh-actions-fix into master
1 file
+ 3
2
Compare changes
  • Side-by-side
  • Inline
+ 3
2
@@ -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?")
Loading