Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Github action 'checkstatus.yml' fails while status pending #1741

Closed
mithro opened this issue Nov 1, 2020 · 0 comments · Fixed by #1742 or #1743
Closed

Github action 'checkstatus.yml' fails while status pending #1741

mithro opened this issue Nov 1, 2020 · 0 comments · Fixed by #1742 or #1743
Assignees

Comments

@mithro
Copy link
Contributor

mithro commented Nov 1, 2020

When the status checks are still pending, the github action fails and causes you to get emailed...

https://github.com/SymbiFlow/symbiflow-arch-defs/runs/1337290559?check_suite_focus=true

  curl -s --url https://api.github.com/repos/SymbiFlow/symbiflow-arch-defs/commits/b31e4a4336d37ea0f2f48b485eeca697da48c9e2/status \
  --header 'authorization: Bearer ***' | head -n 2 | tail -n 1 | grep "success"
  shell: /bin/bash -e ***0***
Error: Process completed with exit code 1.

Maybe it should be something like;

if curl -s --url https://api.github.com/repos/SymbiFlow/symbiflow-arch-defs/commits/b31e4a4336d37ea0f2f48b485eeca697da48c9e2/status --header 'authorization: Bearer ***' | head -n 2 | tail -n 1 | grep "success"; then
  mkdir install && symbiflow_get_latest_artifact_url > install/latest
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants