fix: fix tf acc test pipeline
Some checks failed
CI Workflow / Prepare GO cache (pull_request) Has been cancelled
CI Workflow / Test readiness for publishing provider (pull_request) Has been cancelled
CI Workflow / CI run tests (pull_request) Has been cancelled
CI Workflow / CI run build and linting (pull_request) Has been cancelled
CI Workflow / Code coverage report (pull_request) Has been cancelled
CI Workflow / Check GoReleaser config (pull_request) Has been cancelled

This commit is contained in:
Marcel S. Henselin 2026-03-10 13:22:47 +01:00
parent 4f10919818
commit f783c566fb
2 changed files with 7 additions and 5 deletions

View file

@ -36,10 +36,9 @@ inputs:
default: 'eu01'
required: true
service_account_json:
service_account_json_content:
description: "STACKIT service account JSON file contents"
required: true
default: ""
service_account_json_file_path:
description: "STACKIT service account JSON file contents"
@ -107,8 +106,11 @@ runs:
run: |
set -e
if [[ ! -f "${{ inputs.service_account_json_file_path }}" ]]; then
echo "unable to find service account file '${{ inputs.service_account_json_file_path }}'"
exit 1
if [[ -z "${{ inputs.service_account_json_file_content }}" ]]; then
echo "unable to find service account file '${{ inputs.service_account_json_file_path }}' \n and service_account_json_file_content is empty"
exit 1
fi
echo "${{ inputs.service_account_json_file_content }}" > "${{ inputs.service_account_json_file_path }}"
fi
cat "${{ inputs.service_account_json_file_path }}"