Skip to content

Commit

Permalink
fix status check loop
Browse files Browse the repository at this point in the history
  • Loading branch information
KevKibe committed Oct 29, 2024
1 parent 60b9bb3 commit c5233c9
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -230,8 +230,11 @@ runs:
while true; do
log_message "Retrieving kernel status..."
status=$(kaggle kernels status "$kernel_name" 2>&1)
if [[ "$status" == *"error"* ]]; then
if [[ "$status" == *"403"* || "$status" == *"denied"* ]]; then
log_message "::error::Access denied or kernel not found. Check if the API key has permissions and if the kernel name is correct."
exit 1
elif [[ "$status" == *"error"* ]]; then
log_message "::error::FAIL: Test(s) failed."
exit 1
elif [[ "$status" == *"cancel"* ]]; then
Expand Down

0 comments on commit c5233c9

Please sign in to comment.