diff --git a/mutexbot/release/action.yml b/mutexbot/release/action.yml index 90a6c891..dbd2390c 100644 --- a/mutexbot/release/action.yml +++ b/mutexbot/release/action.yml @@ -39,6 +39,8 @@ runs: rm response.json elif [ "$RESPONSE" -eq 208 ]; then handle_error "Resource not reserved. Aborting." + elif [ "$RESPONSE" -eq 401 ]; then + handle_error "Unauthorized! Check your API keys." elif [ "$RESPONSE" -eq 404 ]; then handle_error "Resource not found." elif [ "$RESPONSE" -eq 409 ]; then diff --git a/mutexbot/reserve/action.yml b/mutexbot/reserve/action.yml index 46c6706f..73bd563e 100644 --- a/mutexbot/reserve/action.yml +++ b/mutexbot/reserve/action.yml @@ -51,6 +51,8 @@ runs: sleep 5 # Wait before retrying elif [ "$RESPONSE" -eq 400 ]; then handle_error "Bad request. Check your input data." + elif [ "$RESPONSE" -eq 401 ]; then + handle_error "Unauthorized! Check your API keys." elif [ "$RESPONSE" -eq 404 ]; then handle_error "Resource not found." else