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 16:09:46 +01:00
parent 5975b2ba97
commit 0d141a289c

View file

@ -130,9 +130,17 @@ runs:
shell: bash
run: |
set -e
if [ ! -f "${{ inputs.service_account_json_file_path }}" ]; then
jsonFileContent="${{ inputs.service_account_json_content }}"
jsonFile="${{ inputs.service_account_json_file_path }}"
jsonFile="${jsonFile:-x}"
if [ "${jsonFile}" == "x" ]; then
echo "no service account file path provided"
exit 1
fi
if [ ! -f "${jsonFile}" ]; then
echo "unable to find service account file '${{ inputs.service_account_json_file_path }}'"
if [ "x${{ inputs.service_account_json_content }}" == "x" ]; then
if [ "${jsonFileContent:-x}" == "x" ]; then
echo "ERROR: service_account_json_file_content MUST NOT be empty if account file is missing"
exit 1
fi