From 7583d705feee14b8482a48084366652f2ab348d3 Mon Sep 17 00:00:00 2001 From: Mykhailo Date: Thu, 14 Dec 2023 10:52:33 +0200 Subject: [PATCH] Update .gitea/workflows/tf-apply.yml --- .gitea/workflows/tf-apply.yml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/.gitea/workflows/tf-apply.yml b/.gitea/workflows/tf-apply.yml index 9aca92a..cc778fd 100644 --- a/.gitea/workflows/tf-apply.yml +++ b/.gitea/workflows/tf-apply.yml @@ -33,8 +33,8 @@ jobs: id: check run: | ls -laR . - echo "code=$(cat ${{steps.download.outputs.download-path}}/artifacts/exitcode)" >> $GITHUB_OUTPUT - if [ "$(cat ${{steps.download.outputs.download-path}}/artifacts/exitcode)" -lt 2 ]; then + echo "code=$(cat ${{steps.download.outputs.download-path}}/exitcode)" >> $GITHUB_OUTPUT + if [ "$(cat ${{steps.download.outputs.download-path}}/exitcode)" -lt 2 ]; then exit "$(cat exitcode)"; fi - name: Clone blackbox repo @@ -89,8 +89,7 @@ jobs: if: ${{ steps.check.outputs.code == 2 }} id: tfplan shell: bash - run: | - terraform apply -input=false -auto-approve tfplan.binary; + run: terraform apply -input=false -auto-approve tfplan.binary; - name: Save terraform cache if: ${{ steps.check.outputs.code == 2 }} uses: actions/cache/save@v3