Closed barnumbirr closed 3 years ago
Hi @barnumbirr 👋
Thank you so much for reporting this! Please forgive my delays in following up with you.
octodns-sync should probably catch errors and fail jobs when tasks fail.
I agree. I think piping to tee
here is what drops the non-zero exit code:
/bin/sh
doesn't know about pipefail
so I think either use /bin/bash
or do something other than | tee
to write the output to a file. I tried switching to /bin/bash
in #24 and noticed an error (#25) I'm not sure is OK. I'll dig into it more this week, or this coming weekend.
@barnumbirr Thanks again for reporting this. If the changes from #24 don't correct the issue, please do re-open this. 🙇
What I did
Run
octodns-sync
action to update DNS records of domain.What I expected to happen
Github Action fails as task failed
What happened instead
Task
Publish
fails with the following stacktrace:Yet the job run still is marked as successful.
Additional info
octodns-sync
should probably catch errors and fail jobs when tasks fail.