fix: order of operations
This commit is contained in:
parent
82d63a7085
commit
bfc24a986a
1 changed files with 3 additions and 3 deletions
|
|
@ -104,7 +104,7 @@ runs:
|
|||
;;
|
||||
esac
|
||||
|
||||
echo "::group::Authenticating with service account and triggering operation"
|
||||
echo "::group::Authenticating with service account"
|
||||
|
||||
if [ -n "$INPUT_SERVICE_ACCOUNT_KEY_PATH" ]; then
|
||||
STACKIT_SERVICE_ACCOUNT_KEY_PATH="$INPUT_SERVICE_ACCOUNT_KEY_PATH"
|
||||
|
|
@ -122,8 +122,6 @@ runs:
|
|||
STACKIT_PROJECT_ID="$INPUT_PROJECT_ID"
|
||||
export STACKIT_PROJECT_ID
|
||||
|
||||
stackit curl --fail -X POST "https://ske.api.stackit.cloud/v2/projects/$INPUT_PROJECT_ID/regions/$INPUT_REGION/clusters/$INPUT_CLUSTER_NAME/$ENDPOINT"
|
||||
|
||||
echo "::endgroup::"
|
||||
|
||||
CURRENT_STATUS="$(stackit ske cluster describe "$INPUT_CLUSTER_NAME" -ojson | jq -r '.status.aggregated')"
|
||||
|
|
@ -138,6 +136,8 @@ runs:
|
|||
exit 1
|
||||
fi
|
||||
|
||||
stackit curl --fail -X POST "https://ske.api.stackit.cloud/v2/projects/$INPUT_PROJECT_ID/regions/$INPUT_REGION/clusters/$INPUT_CLUSTER_NAME/$ENDPOINT"
|
||||
|
||||
if [ "$WAIT" != "true" ]; then
|
||||
echo "Operation triggered. No wait requested, exiting."
|
||||
exit 0
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue