From f69ddbf398d1c3a642122301d0a2fa17244a4c80 Mon Sep 17 00:00:00 2001 From: "Marcel S. Henselin" Date: Fri, 27 Mar 2026 17:05:50 +0100 Subject: [PATCH] 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