jsmrcaga / action-netlify-deploy

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Action should fail if build script fails

tpluscode opened this issue · comments

It came a surprise to me that while node 17 broke some of my builds (re #23), the GH workflows did not actually fail.
So now I have half-deployed websites 😬

Not sure if it's something about my code, but if not, I'd expect a failed build to actually break the workflow

Hey @tpluscode ! thanks a lot for your issue, you're absolutely right.
I'm not an expert on bash scripts, but I'm guessing we are missing this (a set -e at the start):
https://stackoverflow.com/a/19622300/1895443

it would break fail the script if an error occurs. I'll make a PR this evening (in 2/3 hours)