-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Description
So instead of writing:
{
"command": ["while","[","$(hub","ci-status","HEAD)","!=","'success'","];","do","echo","'waiting for status checks'",";","sleep","1",";","if","[","$(hub","ci-status","HEAD)","==","'failure'","];","then","echo","'oh snap, we cannot release this';","exit","1;","fi;","done;"]
}
I can write:
{
"command": ["hub","ci-status","HEAD"],
"waitfor": {
"output": "success",
"exit_code": 0,
"timeout": 100000,
"fail": {
"exit_code": 1
}
}
}
or something to that effect...