Skip to content

Commit

Permalink
continue deletion if one call fails
Browse files Browse the repository at this point in the history
  • Loading branch information
nicoloboschi committed May 31, 2024
1 parent c46b896 commit d0199b9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,12 +52,12 @@ runs:
if [ "${{ inputs.wait }}" == "true" ]; then
wait_param=""
fi
$ASTRA_BIN db delete -v "$name" --token $ASTRA_TOKEN --env $ASTRA_ENV $wait_param
if [ "${{ inputs.wait }}" == "true" ]; then
echo "Database $name deleted"
ok_log="Database $name deleted"
else
echo "Database $name issued to deletion"
ok_log="Database $name issued to deletion"
fi
($ASTRA_BIN db delete -v "$name" --token $ASTRA_TOKEN --env $ASTRA_ENV $wait_param && echo $ok_log) || echo "Deletion failed, continue with other databases"
else
echo "Database $name skipped"
fi
Expand Down

0 comments on commit d0199b9

Please sign in to comment.