-
Notifications
You must be signed in to change notification settings - Fork 48
David/GitHub action update cdn #389
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
base: master
Are you sure you want to change the base?
David/GitHub action update cdn #389
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
non-zero or zero exit, it matters:
if sys.exit(0), the action is marked as success.
if sys.exit(1), the action is marked as a failure.
When should it marked as failure? When as success?
Should be marked as failure when the user needs to be notified as something.
Careful with the prints. It would be nice if w/ action success/failure status, the subtitle was whatever link the user had to follow. This is what github pages does when a new pages is published.
Can this also automatically update the CHANGELOG is a second commit?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
mayoria de acciones deben estar un action.yml en su propio repositorio para reusar
if brc_eval: | ||
msg = err.decode() | ||
if "HTTP 404" not in msg: | ||
print(msg) # unexpected errors |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
stderr?
["gh", "api", f"repos/{REPO}/branches/{branch}", "--silent"] | ||
) | ||
|
||
if brc_eval: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
condicional un poco enredado
print(msg) # unexpected errors | ||
sys.exit(1) | ||
else: | ||
print(f"The branch {branch} already exists") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
stderr etc
issues = json.loads(brc.decode()) | ||
if issues: | ||
for issue in issues: | ||
if issue.get("state") == "OPEN": |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
por qué solo open?
automatic update of plotly.js