From 2bdb5d4eb253500518b316cadc82c13ead43c78f Mon Sep 17 00:00:00 2001 From: "Marcel S. Henselin" Date: Fri, 27 Mar 2026 16:47:52 +0100 Subject: [PATCH 01/13] fix: try fix empty outputs [skip ci] --- .github/actions/acc_test/action.yaml | 11 ++++++----- .github/workflows/tf-acc-test.yaml | 14 +++++++++----- 2 files changed, 15 insertions(+), 10 deletions(-) diff --git a/.github/actions/acc_test/action.yaml b/.github/actions/acc_test/action.yaml index 46565e96..30d82776 100644 --- a/.github/actions/acc_test/action.yaml +++ b/.github/actions/acc_test/action.yaml @@ -207,7 +207,7 @@ runs: id: testrun shell: bash run: | - echo "::group::go test file" + echo "::group::go test" set -e set -o pipefail @@ -233,18 +233,19 @@ runs: TF_ACC_KEK_KEY_VERSION=${TF_ACC_KEK_KEY_VERSION} \ TF_ACC_KEK_SERVICE_ACCOUNT=${TF_ACC_KEK_SERVICE_ACCOUNT} \ go test -v ${testfile} -timeout=${{ inputs.test_timeout_string }} | tee -a acc_test_run.log - echo "::endgroup::" set -e - echo "::group::go test result" if [[ $(cat acc_test_run.log | grep "FAIL") ]]; then + echo "::endgroup::" + echo "::group::go test result" echo "Test failed, see acc_test_run.log for details" res=$(cat acc_test_run.log | grep -v "=== RUN" | grep -v "\-\-\- PASS" | grep -v "=== CONT" | grep -v "=== PAUSE") echo "result=FAIL: ${res}" >> "$GITHUB_OUTPUT" + echo "::endgroup::" exit 1 - else - echo "result=no FAIL detected" >> "$GITHUB_OUTPUT" fi + + echo "result=no FAIL detected" >> "$GITHUB_OUTPUT" echo "::endgroup::" env: TF_ACC_PROJECT_ID: ${{ inputs.project_id }} diff --git a/.github/workflows/tf-acc-test.yaml b/.github/workflows/tf-acc-test.yaml index be9c4c58..17ace8ad 100644 --- a/.github/workflows/tf-acc-test.yaml +++ b/.github/workflows/tf-acc-test.yaml @@ -42,8 +42,10 @@ jobs: - name: set start time id: start_time run: | - echo "time=$(date --rfc-3339=ns)" >> ${GITHUB_ENV} - echo "start=$(date +%s%N)" >> ${GITHUB_ENV} + time=$(date --rfc-3339=ns) + echo "start_time=$time" >> ${GITHUB_ENV} + start=$(date +%s%N) + echo "start=$start" >> ${GITHUB_ENV} - name: Notify uses: ./.github/actions/notify @@ -51,7 +53,7 @@ jobs: webhook_url: ${{ secrets.GOOGLE_WEBHOOK_URL }} title: "[START] Terraform Acceptance Tests" subtitle: "${{ forgejo.event_name }} on branch ${{ forgejo.ref }}" - event_title: "started: ${{ steps.start_time.outputs.time }}" + event_title: "started: ${{ steps.start_time.outputs.start_time }}" event_author: ${{ forgejo.actor }} event_body: ${{ inputs.test_file }} event_number: ${{ forgejo.run_number }} @@ -93,12 +95,14 @@ jobs: - name: set end time id: end_time run: | - echo "time=$(date --rfc-3339=ns)" >> ${GITHUB_ENV} + echo "end_time=$(date --rfc-3339=ns)" >> ${GITHUB_ENV} end=$(date +%s%N) echo "end=${end}" >> ${GITHUB_ENV} start=${{ steps.start_time.outputs.start }} diff=$((end-start)) + echo "diff=${diff}" duration=$(printf "%s.%s" "${diff:0: -9}" "${diff: -9:3}") + echoh "duration=${duration}" echo "duration=${duration}" >> ${GITHUB_ENV} - name: Notify @@ -107,7 +111,7 @@ jobs: webhook_url: ${{ secrets.GOOGLE_WEBHOOK_URL }} title: "[END] Terraform Acceptance Tests" subtitle: "${{ forgejo.event_name }} on branch ${{ forgejo.ref }} with status: ${{ forgejo.event_name == 'workflow_dispatch' && steps.manual_run.outputs.status || steps.automatic_run.outputs.status }}" - event_title: "run ended: ${{ steps.end_time.outputs.time }}, duration: ${{ steps.end_time.outputs.duration }} seconds" + event_title: "run ended: ${{ steps.end_time.outputs.end_time }}, duration: ${{ steps.end_time.outputs.duration }} seconds" event_author: ${{ forgejo.actor }} event_body: "${{ forgejo.event_name == 'workflow_dispatch' && steps.manual_run.outputs.result || steps.automatic_run.outputs.result }}" event_number: ${{ forgejo.event.id }} -- 2.49.1 From f5cd238d8f8bea414b6a785ea56978b6caf38d12 Mon Sep 17 00:00:00 2001 From: "Marcel S. Henselin" Date: Fri, 27 Mar 2026 16:55:56 +0100 Subject: [PATCH 02/13] fix: try fix empty outputs [skip ci] --- .github/workflows/tf-acc-test.yaml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/tf-acc-test.yaml b/.github/workflows/tf-acc-test.yaml index 17ace8ad..9024873d 100644 --- a/.github/workflows/tf-acc-test.yaml +++ b/.github/workflows/tf-acc-test.yaml @@ -47,6 +47,11 @@ jobs: start=$(date +%s%N) echo "start=$start" >> ${GITHUB_ENV} + - name: debug + shell: bash + run: | + echo "start_time: ${{ steps.start_time.outputs.start_time }}" + - name: Notify uses: ./.github/actions/notify with: -- 2.49.1 From 992e678c3c1fab375840e612b1399506f2b475de Mon Sep 17 00:00:00 2001 From: "Marcel S. Henselin" Date: Fri, 27 Mar 2026 16:56:54 +0100 Subject: [PATCH 03/13] fix: try fix empty outputs [skip ci] --- .github/workflows/tf-acc-test.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/tf-acc-test.yaml b/.github/workflows/tf-acc-test.yaml index 9024873d..7e1f4911 100644 --- a/.github/workflows/tf-acc-test.yaml +++ b/.github/workflows/tf-acc-test.yaml @@ -100,6 +100,7 @@ jobs: - name: set end time id: end_time run: | + set -e echo "end_time=$(date --rfc-3339=ns)" >> ${GITHUB_ENV} end=$(date +%s%N) echo "end=${end}" >> ${GITHUB_ENV} @@ -107,7 +108,7 @@ jobs: diff=$((end-start)) echo "diff=${diff}" duration=$(printf "%s.%s" "${diff:0: -9}" "${diff: -9:3}") - echoh "duration=${duration}" + echo "duration=${duration}" echo "duration=${duration}" >> ${GITHUB_ENV} - name: Notify -- 2.49.1 From ee1e8c079e277ee925833a00e53fffc90c7d0cf5 Mon Sep 17 00:00:00 2001 From: "Marcel S. Henselin" Date: Fri, 27 Mar 2026 17:00:17 +0100 Subject: [PATCH 04/13] fix: try fix empty outputs [skip ci] --- .github/workflows/tf-acc-test.yaml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/tf-acc-test.yaml b/.github/workflows/tf-acc-test.yaml index 7e1f4911..7ce38338 100644 --- a/.github/workflows/tf-acc-test.yaml +++ b/.github/workflows/tf-acc-test.yaml @@ -41,10 +41,13 @@ jobs: - name: set start time id: start_time + continue-on-error: true run: | time=$(date --rfc-3339=ns) + echo "start_time=$time" echo "start_time=$time" >> ${GITHUB_ENV} start=$(date +%s%N) + echo "start=$start" echo "start=$start" >> ${GITHUB_ENV} - name: debug @@ -67,6 +70,7 @@ jobs: - name: Run Test (workflow dispatch) if: ${{ forgejo.event_name == 'workflow_dispatch' }} id: manual_run + continue-on-error: true uses: ./.github/actions/acc_test with: go-version: ${{ env.GO_VERSION }} @@ -85,6 +89,7 @@ jobs: - name: Run Test (automatic) if: ${{ forgejo.event_name != 'workflow_dispatch' }} id: automatic_run + continue-on-error: true uses: ./.github/actions/acc_test with: go-version: ${{ env.GO_VERSION }} @@ -99,6 +104,7 @@ jobs: - name: set end time id: end_time + continue-on-error: true run: | set -e echo "end_time=$(date --rfc-3339=ns)" >> ${GITHUB_ENV} -- 2.49.1 From f69ddbf398d1c3a642122301d0a2fa17244a4c80 Mon Sep 17 00:00:00 2001 From: "Marcel S. Henselin" Date: Fri, 27 Mar 2026 17:05:50 +0100 Subject: [PATCH 05/13] fix: try fix empty outputs [skip ci] --- .github/actions/clean_up/action.yaml | 6 ++++-- .github/workflows/tf-acc-test.yaml | 19 +++++-------------- 2 files changed, 9 insertions(+), 16 deletions(-) diff --git a/.github/actions/clean_up/action.yaml b/.github/actions/clean_up/action.yaml index 72ee1dad..d5e1e911 100644 --- a/.github/actions/clean_up/action.yaml +++ b/.github/actions/clean_up/action.yaml @@ -167,9 +167,11 @@ runs: if: ${{ inputs.list_only != 'true' }} run: | echo "::group::delete PostgreSQL Flex resources" - set -e stackit auth activate-service-account --service-account-key-path .svc_acc.json - for s in $(stackit --verbosity ${{ inputs.log_level }} --project-id ${{ inputs.project_id }} postgresflex instance list --output-format json | jq -r '.[] | select(.name | startswith("${{ inputs.tf_resource_prefix }}")) | .id'); do stackit --verbosity ${{ inputs.log_level }} -y --project-id ${{ inputs.project_id }} postgresflex instance delete "$s" --force; done + for s in $(stackit --verbosity ${{ inputs.log_level }} --project-id ${{ inputs.project_id }} postgresflex instance list --output-format json | jq -r '.[] | select(.name | startswith("${{ inputs.tf_resource_prefix }}")) | .id'); + do + stackit --verbosity ${{ inputs.log_level }} -y --project-id ${{ inputs.project_id }} postgresflex instance delete "$s" --force; + done echo "::endgroup::" shell: bash diff --git a/.github/workflows/tf-acc-test.yaml b/.github/workflows/tf-acc-test.yaml index 7ce38338..1a5c5c02 100644 --- a/.github/workflows/tf-acc-test.yaml +++ b/.github/workflows/tf-acc-test.yaml @@ -44,16 +44,9 @@ jobs: continue-on-error: true run: | time=$(date --rfc-3339=ns) - echo "start_time=$time" - echo "start_time=$time" >> ${GITHUB_ENV} + echo "start_time=$time" >> ${GITHUB_OUTPUT} start=$(date +%s%N) - echo "start=$start" - echo "start=$start" >> ${GITHUB_ENV} - - - name: debug - shell: bash - run: | - echo "start_time: ${{ steps.start_time.outputs.start_time }}" + echo "start=$start" >> ${GITHUB_OUTPUT} - name: Notify uses: ./.github/actions/notify @@ -107,15 +100,13 @@ jobs: continue-on-error: true run: | set -e - echo "end_time=$(date --rfc-3339=ns)" >> ${GITHUB_ENV} + echo "end_time=$(date --rfc-3339=ns)" >> ${GITHUB_OUTPUT} end=$(date +%s%N) - echo "end=${end}" >> ${GITHUB_ENV} + echo "end=${end}" >> ${GITHUB_OUTPUT} start=${{ steps.start_time.outputs.start }} diff=$((end-start)) - echo "diff=${diff}" duration=$(printf "%s.%s" "${diff:0: -9}" "${diff: -9:3}") - echo "duration=${duration}" - echo "duration=${duration}" >> ${GITHUB_ENV} + echo "duration=${duration}" >> ${GITHUB_OUTPUT} - name: Notify uses: ./.github/actions/notify -- 2.49.1 From e48a6b84bb9cf3e4980ceb30bd50b1fab49841fc Mon Sep 17 00:00:00 2001 From: "Marcel S. Henselin" Date: Fri, 27 Mar 2026 17:09:20 +0100 Subject: [PATCH 06/13] fix: try fix empty outputs [skip ci] --- .github/actions/clean_up/action.yaml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/actions/clean_up/action.yaml b/.github/actions/clean_up/action.yaml index d5e1e911..5ff915f7 100644 --- a/.github/actions/clean_up/action.yaml +++ b/.github/actions/clean_up/action.yaml @@ -150,9 +150,11 @@ runs: if: ${{ inputs.list_only != 'true' }} run: | echo "::group::delete SQL Server Flex resources" - set -e stackit --verbosity ${{ inputs.log_level }} auth activate-service-account --service-account-key-path .svc_acc.json - for s in $(stackit --verbosity ${{ inputs.log_level }} --project-id ${{ inputs.project_id }} beta sqlserverflex instance list --output-format json | jq -r '.[] | select(.name | startswith("${{ inputs.tf_resource_prefix }}")) | .id'); do stackit --verbosity ${{ inputs.log_level }} -y --project-id ${{ inputs.project_id }} beta sqlserverflex instance delete $s; done + for s in $(stackit --verbosity ${{ inputs.log_level }} --project-id ${{ inputs.project_id }} beta sqlserverflex instance list --output-format json | jq -r '.[] | select(.name | startswith("${{ inputs.tf_resource_prefix }}")) | .id'); + do + stackit --verbosity ${{ inputs.log_level }} -y --project-id ${{ inputs.project_id }} beta sqlserverflex instance delete $s; + done echo "::endgroup::" shell: bash -- 2.49.1 From a5ae8a63d454d5266e4a88cfac0e163ccb77ad56 Mon Sep 17 00:00:00 2001 From: "Marcel S. Henselin" Date: Fri, 27 Mar 2026 17:22:40 +0100 Subject: [PATCH 07/13] fix: try fix empty outputs [skip ci] --- .github/workflows/ci_new.yaml | 14 ++++++++------ .github/workflows/clean_up.yaml | 4 ++-- .github/workflows/publish.yaml | 28 ++++++++++++++++++++++------ .github/workflows/tf-acc-test.yaml | 4 ++-- 4 files changed, 34 insertions(+), 16 deletions(-) diff --git a/.github/workflows/ci_new.yaml b/.github/workflows/ci_new.yaml index d79f806a..61288df4 100644 --- a/.github/workflows/ci_new.yaml +++ b/.github/workflows/ci_new.yaml @@ -34,15 +34,17 @@ jobs: uses: actions/checkout@v6 - name: Notify + if: always() uses: ./.github/actions/notify with: webhook_url: ${{ secrets.GOOGLE_WEBHOOK_URL }} - title: CI pipeline started - event_title: ${{ github.event.type }} - event_author: ${{ github.event.actor.login }} - event_body: 'No event body.' - event_number: ${{ github.event.id }} - event_url: "https://tf-provider.git.onstackit.cloud/stackit-dev-tools/terraform-provider-stackitprivatepreview/actions/runs/${{ github.run_id }}" + title: "[START] CI pipeline (#${{ forgejo.run_number }})" + subtitle: "${{ forgejo.event_name }} on ${{ forgejo.ref_name }}" + event_title: "${{ forgejo.event_name }} for ${{ forgejo.repository }}" + event_author: ${{ forgejo.actor }} + event_body: "${{ forgejo.event_name }} on ${{ forgejo.ref }} for ${{ forgejo.repository }}" + event_number: ${{ forgejo.run_number }} + event_url: "https://tf-provider.git.onstackit.cloud/stackit-dev-tools/terraform-provider-stackitprivatepreview/actions/runs/${{ forgejo.run_number }}" - name: Check GoReleaser uses: goreleaser/goreleaser-action@v7 diff --git a/.github/workflows/clean_up.yaml b/.github/workflows/clean_up.yaml index d9e61d2c..e1cc291b 100644 --- a/.github/workflows/clean_up.yaml +++ b/.github/workflows/clean_up.yaml @@ -38,7 +38,7 @@ jobs: uses: ./.github/actions/notify with: webhook_url: ${{ secrets.GOOGLE_WEBHOOK_URL }} - title: "[START] CLEAN UP pipeline" + title: "[START] CLEAN UP pipeline (#${{ forgejo.run_number }})" subtitle: "${{ forgejo.repository }}" event_title: ${{ forgejo.event_name }} event_author: ${{ forgejo.actor }} @@ -62,7 +62,7 @@ jobs: uses: ./.github/actions/notify with: webhook_url: ${{ secrets.GOOGLE_WEBHOOK_URL }} - title: "[END] CLEAN UP pipeline" + title: "[END] CLEAN UP pipeline (#${{ forgejo.run_number }})" subtitle: "${{ forgejo.repository }}" event_title: ${{ forgejo.event_name }} event_author: ${{ forgejo.actor }} diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml index 2810d5c4..dbfbc247 100644 --- a/.github/workflows/publish.yaml +++ b/.github/workflows/publish.yaml @@ -51,12 +51,13 @@ jobs: uses: ./.github/actions/notify with: webhook_url: ${{ secrets.GOOGLE_WEBHOOK_URL }} - title: Publish started - event_title: ${{ github.event.type }} - event_author: ${{ github.event.actor.login }} - event_body: "Trigger: ${{ github.event_name }}" - event_number: ${{ github.event.id }} - event_url: "https://tf-provider.git.onstackit.cloud/stackit-dev-tools/terraform-provider-stackitprivatepreview/actions/runs/${{ github.run_id }}" + title: "[START] Publish (#${{ forgejo.run_number }})" + subtitle: "${{ forgejo.event_name }} on branch ${{ forgejo.ref }}" + event_title: "run started" + event_author: ${{ forgejo.actor }} + event_body: "" + event_number: ${{ forgejo.event.id }} + event_url: "https://tf-provider.git.onstackit.cloud/stackit-dev-tools/terraform-provider-stackitprivatepreview/actions/runs/${{ forgejo.run_number }}" - name: Setup Go uses: actions/setup-go@v6 @@ -145,6 +146,7 @@ jobs: --outFile nav.md - name: Publish provider to S3 + id: publish_to_s3 run: | set -e cd release/ @@ -165,3 +167,17 @@ jobs: # echo "${{ github.ref_name }}" >docs/_version.txt scp -o StrictHostKeyChecking=no -r docs ubuntu@${{ vars.DOCS_SERVER_IP }}:/srv/www/ scp -o StrictHostKeyChecking=no nav.md ubuntu@${{ vars.DOCS_SERVER_IP }}:/srv/www/ + + - name: Notify + if: always() + uses: ./.github/actions/notify + with: + webhook_url: ${{ secrets.GOOGLE_WEBHOOK_URL }} + title: "[END] Publish (#${{ forgejo.run_number }})" + subtitle: "${{ forgejo.event_name }} on branch ${{ forgejo.ref }}" + event_title: "released: ${{ steps.get_version.outputs.version }}" + event_author: ${{ forgejo.actor }} + event_body: "" + event_number: ${{ forgejo.event.id }} + event_url: "https://tf-provider.git.onstackit.cloud/stackit-dev-tools/terraform-provider-stackitprivatepreview/actions/runs/${{ forgejo.run_number }}" + status: "${{ steps.publish_to_s3.outcome == 'success' && 'SUCCESS' || 'FAILURE' }}" diff --git a/.github/workflows/tf-acc-test.yaml b/.github/workflows/tf-acc-test.yaml index 1a5c5c02..d5a03222 100644 --- a/.github/workflows/tf-acc-test.yaml +++ b/.github/workflows/tf-acc-test.yaml @@ -52,7 +52,7 @@ jobs: uses: ./.github/actions/notify with: webhook_url: ${{ secrets.GOOGLE_WEBHOOK_URL }} - title: "[START] Terraform Acceptance Tests" + title: "[START] Terraform Acceptance Tests (#${{ forgejo.run_number }})" subtitle: "${{ forgejo.event_name }} on branch ${{ forgejo.ref }}" event_title: "started: ${{ steps.start_time.outputs.start_time }}" event_author: ${{ forgejo.actor }} @@ -112,7 +112,7 @@ jobs: uses: ./.github/actions/notify with: webhook_url: ${{ secrets.GOOGLE_WEBHOOK_URL }} - title: "[END] Terraform Acceptance Tests" + title: "[END] Terraform Acceptance Tests (#${{ forgejo.run_number }})" subtitle: "${{ forgejo.event_name }} on branch ${{ forgejo.ref }} with status: ${{ forgejo.event_name == 'workflow_dispatch' && steps.manual_run.outputs.status || steps.automatic_run.outputs.status }}" event_title: "run ended: ${{ steps.end_time.outputs.end_time }}, duration: ${{ steps.end_time.outputs.duration }} seconds" event_author: ${{ forgejo.actor }} -- 2.49.1 From 1920a79e10b268e60411ee2e2f2483066dd7b422 Mon Sep 17 00:00:00 2001 From: "Marcel S. Henselin" Date: Fri, 27 Mar 2026 17:25:24 +0100 Subject: [PATCH 08/13] fix: try fix empty outputs [skip ci] --- .github/actions/clean_up/action.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/actions/clean_up/action.yaml b/.github/actions/clean_up/action.yaml index 5ff915f7..8c28cd27 100644 --- a/.github/actions/clean_up/action.yaml +++ b/.github/actions/clean_up/action.yaml @@ -153,7 +153,7 @@ runs: stackit --verbosity ${{ inputs.log_level }} auth activate-service-account --service-account-key-path .svc_acc.json for s in $(stackit --verbosity ${{ inputs.log_level }} --project-id ${{ inputs.project_id }} beta sqlserverflex instance list --output-format json | jq -r '.[] | select(.name | startswith("${{ inputs.tf_resource_prefix }}")) | .id'); do - stackit --verbosity ${{ inputs.log_level }} -y --project-id ${{ inputs.project_id }} beta sqlserverflex instance delete $s; + stackit --verbosity ${{ inputs.log_level }} -y --project-id ${{ inputs.project_id }} beta sqlserverflex instance delete $s || continue; done echo "::endgroup::" shell: bash @@ -172,7 +172,7 @@ runs: stackit auth activate-service-account --service-account-key-path .svc_acc.json for s in $(stackit --verbosity ${{ inputs.log_level }} --project-id ${{ inputs.project_id }} postgresflex instance list --output-format json | jq -r '.[] | select(.name | startswith("${{ inputs.tf_resource_prefix }}")) | .id'); do - stackit --verbosity ${{ inputs.log_level }} -y --project-id ${{ inputs.project_id }} postgresflex instance delete "$s" --force; + stackit --verbosity ${{ inputs.log_level }} -y --project-id ${{ inputs.project_id }} postgresflex instance delete "$s" --force || continue; done echo "::endgroup::" shell: bash -- 2.49.1 From 336ae139026d94a70b7f394ed1554cb591d939dd Mon Sep 17 00:00:00 2001 From: "Marcel S. Henselin" Date: Fri, 27 Mar 2026 17:36:43 +0100 Subject: [PATCH 09/13] fix: try fix empty outputs [skip ci] --- .github/actions/clean_up/action.yaml | 27 +++++++++++++++++++++++++-- 1 file changed, 25 insertions(+), 2 deletions(-) diff --git a/.github/actions/clean_up/action.yaml b/.github/actions/clean_up/action.yaml index 8c28cd27..2fb12e2c 100644 --- a/.github/actions/clean_up/action.yaml +++ b/.github/actions/clean_up/action.yaml @@ -49,6 +49,10 @@ outputs: description: "number of resources found" value: ${{ steps.retrieve_post.outputs.count }} + status: + description: "status of the test" + value: ${{ steps.status.outputs.status }} + runs: using: "composite" steps: @@ -148,12 +152,13 @@ runs: - name: Delete SQL Server Flex resources if: ${{ inputs.list_only != 'true' }} + id: del_sql run: | echo "::group::delete SQL Server Flex resources" stackit --verbosity ${{ inputs.log_level }} auth activate-service-account --service-account-key-path .svc_acc.json for s in $(stackit --verbosity ${{ inputs.log_level }} --project-id ${{ inputs.project_id }} beta sqlserverflex instance list --output-format json | jq -r '.[] | select(.name | startswith("${{ inputs.tf_resource_prefix }}")) | .id'); do - stackit --verbosity ${{ inputs.log_level }} -y --project-id ${{ inputs.project_id }} beta sqlserverflex instance delete $s || continue; + stackit --verbosity ${{ inputs.log_level }} -y --project-id ${{ inputs.project_id }} beta sqlserverflex instance delete $s || (echo "status=FAILURE" >> ${GITHUB_OUTPUT} && continue); done echo "::endgroup::" shell: bash @@ -167,12 +172,13 @@ runs: - name: Delete PostgreSQL Flex resources if: ${{ inputs.list_only != 'true' }} + id: del_pg run: | echo "::group::delete PostgreSQL Flex resources" stackit auth activate-service-account --service-account-key-path .svc_acc.json for s in $(stackit --verbosity ${{ inputs.log_level }} --project-id ${{ inputs.project_id }} postgresflex instance list --output-format json | jq -r '.[] | select(.name | startswith("${{ inputs.tf_resource_prefix }}")) | .id'); do - stackit --verbosity ${{ inputs.log_level }} -y --project-id ${{ inputs.project_id }} postgresflex instance delete "$s" --force || continue; + stackit --verbosity ${{ inputs.log_level }} -y --project-id ${{ inputs.project_id }} postgresflex instance delete "$s" --force || (echo "status=FAILURE" >> ${GITHUB_OUTPUT} && continue); done echo "::endgroup::" shell: bash @@ -206,3 +212,20 @@ runs: echo "count=$(( ${pg_count} + ${sql_count} ))" >> $GITHUB_OUTPUT echo "::endgroup::" shell: bash + + - name: Set status + if: always() + id: status + run: | + if [[ ${{ inputs.list_only }} ]]; then + echo "status=SUCCESS" >> $GITHUB_OUTPUT + else + if [[ "${{ steps.del_pg.outputs.status }}" == "FAILURE" ]]; then + echo "status=FAILURE" >> $GITHUB_OUTPUT + elif [[ "${{ steps.del_sql.outputs.status }}" == "FAILURE" ]]; then + echo "status=FAILURE" >> $GITHUB_OUTPUT + else + echo "status=SUCCESS" >> $GITHUB_OUTPUT + fi + fi + shell: bash -- 2.49.1 From c51d00d825aeebea4e11135e60a0080202ce76c6 Mon Sep 17 00:00:00 2001 From: "Marcel S. Henselin" Date: Fri, 27 Mar 2026 17:44:32 +0100 Subject: [PATCH 10/13] fix: try fix empty outputs [skip ci] --- .github/workflows/tf-acc-test.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/tf-acc-test.yaml b/.github/workflows/tf-acc-test.yaml index d5a03222..730fb0ca 100644 --- a/.github/workflows/tf-acc-test.yaml +++ b/.github/workflows/tf-acc-test.yaml @@ -100,6 +100,9 @@ jobs: continue-on-error: true run: | set -e + echo "auto status: ${{ steps.automatic_run.outputs.status }}" + echo "manual status: ${{ steps.manual_run.outputs.status }}" + echo "status: ${{ forgejo.event_name == 'workflow_dispatch' && steps.manual_run.outputs.status || steps.automatic_run.outputs.status }}" echo "end_time=$(date --rfc-3339=ns)" >> ${GITHUB_OUTPUT} end=$(date +%s%N) echo "end=${end}" >> ${GITHUB_OUTPUT} -- 2.49.1 From e8165da58f8927b9ca72b5730227bf5739af51d4 Mon Sep 17 00:00:00 2001 From: "Marcel S. Henselin" Date: Fri, 27 Mar 2026 17:54:17 +0100 Subject: [PATCH 11/13] fix: try fix empty outputs [skip ci] --- .github/actions/acc_test/action.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/actions/acc_test/action.yaml b/.github/actions/acc_test/action.yaml index 30d82776..79f82298 100644 --- a/.github/actions/acc_test/action.yaml +++ b/.github/actions/acc_test/action.yaml @@ -67,11 +67,11 @@ inputs: outputs: result: - value: "${{ steps.testrun.result }}" + value: ${{ steps.testrun.outputs.result }} description: "the output of the tests" status: - value: "${{ steps.status.status }}" + value: ${{ steps.status.outputs.status }} description: "the status of the tests" runs: -- 2.49.1 From 77c84eb9600d9389729a9728df6ec8cd9279ef61 Mon Sep 17 00:00:00 2001 From: "Marcel S. Henselin" Date: Fri, 27 Mar 2026 17:56:46 +0100 Subject: [PATCH 12/13] fix: try fix empty outputs [skip ci] --- .github/actions/clean_up/action.yaml | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/.github/actions/clean_up/action.yaml b/.github/actions/clean_up/action.yaml index 2fb12e2c..0f503612 100644 --- a/.github/actions/clean_up/action.yaml +++ b/.github/actions/clean_up/action.yaml @@ -217,15 +217,11 @@ runs: if: always() id: status run: | - if [[ ${{ inputs.list_only }} ]]; then - echo "status=SUCCESS" >> $GITHUB_OUTPUT - else - if [[ "${{ steps.del_pg.outputs.status }}" == "FAILURE" ]]; then - echo "status=FAILURE" >> $GITHUB_OUTPUT - elif [[ "${{ steps.del_sql.outputs.status }}" == "FAILURE" ]]; then - echo "status=FAILURE" >> $GITHUB_OUTPUT - else - echo "status=SUCCESS" >> $GITHUB_OUTPUT - fi + status="SUCCESS" + if [[ "${{ steps.del_pg.outputs.status }}" == "FAILURE" ]]; then + status=FAILURE" + elif [[ "${{ steps.del_sql.outputs.status }}" == "FAILURE" ]]; then + status=FAILURE" fi + echo "status=$status" >> $GITHUB_OUTPUT shell: bash -- 2.49.1 From 9f7d16440d43c7a86049065131b7f0ac2ff5248f Mon Sep 17 00:00:00 2001 From: "Marcel S. Henselin" Date: Fri, 27 Mar 2026 17:57:34 +0100 Subject: [PATCH 13/13] fix: try fix empty outputs [skip ci] --- .github/actions/clean_up/action.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/actions/clean_up/action.yaml b/.github/actions/clean_up/action.yaml index 0f503612..c8e142fa 100644 --- a/.github/actions/clean_up/action.yaml +++ b/.github/actions/clean_up/action.yaml @@ -158,7 +158,7 @@ runs: stackit --verbosity ${{ inputs.log_level }} auth activate-service-account --service-account-key-path .svc_acc.json for s in $(stackit --verbosity ${{ inputs.log_level }} --project-id ${{ inputs.project_id }} beta sqlserverflex instance list --output-format json | jq -r '.[] | select(.name | startswith("${{ inputs.tf_resource_prefix }}")) | .id'); do - stackit --verbosity ${{ inputs.log_level }} -y --project-id ${{ inputs.project_id }} beta sqlserverflex instance delete $s || (echo "status=FAILURE" >> ${GITHUB_OUTPUT} && continue); + stackit --verbosity ${{ inputs.log_level }} -y --project-id ${{ inputs.project_id }} beta sqlserverflex instance delete $s || echo "status=FAILURE" >> ${GITHUB_OUTPUT}; done echo "::endgroup::" shell: bash @@ -178,7 +178,7 @@ runs: stackit auth activate-service-account --service-account-key-path .svc_acc.json for s in $(stackit --verbosity ${{ inputs.log_level }} --project-id ${{ inputs.project_id }} postgresflex instance list --output-format json | jq -r '.[] | select(.name | startswith("${{ inputs.tf_resource_prefix }}")) | .id'); do - stackit --verbosity ${{ inputs.log_level }} -y --project-id ${{ inputs.project_id }} postgresflex instance delete "$s" --force || (echo "status=FAILURE" >> ${GITHUB_OUTPUT} && continue); + stackit --verbosity ${{ inputs.log_level }} -y --project-id ${{ inputs.project_id }} postgresflex instance delete "$s" --force || echo "status=FAILURE" >> ${GITHUB_OUTPUT}; done echo "::endgroup::" shell: bash -- 2.49.1