From 0d141a289cb0ecaa8ab1d081244814001a81547e Mon Sep 17 00:00:00 2001 From: "Marcel S. Henselin" Date: Tue, 10 Mar 2026 16:09:46 +0100 Subject: [PATCH] fix: tf acc test pipeline --- .github/actions/acc_test/action.yaml | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/.github/actions/acc_test/action.yaml b/.github/actions/acc_test/action.yaml index ced5ccd1..e467682c 100644 --- a/.github/actions/acc_test/action.yaml +++ b/.github/actions/acc_test/action.yaml @@ -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