From bec7a743bbbf554a01b8c54c3109d134a1dc3b55 Mon Sep 17 00:00:00 2001 From: Maximilian Jugl Date: Fri, 15 May 2026 10:09:51 +0000 Subject: [PATCH 1/2] feat: add state-match output (#1) Reviewed-on: https://stackit-solutions.git.onstackit.cloud/actions/ske-operations/pulls/1 --- action.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/action.yml b/action.yml index 578fd60..4fe022f 100644 --- a/action.yml +++ b/action.yml @@ -33,11 +33,16 @@ inputs: description: "Wait until target state of operation has been reached." required: false default: "true" +outputs: + state-match: + description: "A boolean value to indicate that the target state was already reached" + value: ${{ steps.trigger-op.outputs.state-match }} runs: using: composite steps: - name: Trigger SKE operation + id: trigger-op shell: sh env: INPUT_ACTION: ${{ inputs.action }} @@ -129,6 +134,7 @@ runs: if [ "$CURRENT_STATUS" != "$INITIAL_STATUS" ]; then if [ "$CURRENT_STATUS" = "$TARGET_STATUS" ]; then echo "Cluster is already in desired state." + echo "state-match=true" >> "$GITHUB_OUTPUT" exit 0 fi @@ -136,6 +142,8 @@ runs: exit 1 fi + echo "state-match=false" >> "$GITHUB_OUTPUT" + 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 From 4749256334e5bdc0f85b4643848e2ce6ab83ba39 Mon Sep 17 00:00:00 2001 From: Maximilian Jugl Date: Fri, 15 May 2026 12:10:38 +0200 Subject: [PATCH 2/2] docs: update README to v2 --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 5414f85..ba78850 100644 --- a/README.md +++ b/README.md @@ -16,7 +16,7 @@ The key must be tied to a service account which has editor privileges on SKE res - name: Install STACKIT CLI uses: https://stackit-solutions.git.onstackit.cloud/actions/install-stackit-cli@v1 - name: Hibernate cluster - uses: https://stackit-solutions.git.onstackit.cloud/actions/ske-operations@v1 + uses: https://stackit-solutions.git.onstackit.cloud/actions/ske-operations@v2 with: action: hibernate region: eu01