From 9f6810a2997e6828588c6bc996ca64370703a240 Mon Sep 17 00:00:00 2001 From: Emterry Date: Mon, 25 Sep 2023 10:02:06 +0100 Subject: [PATCH] undo last change --- .../workflows/reusable-workflow-terraform.yml | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) diff --git a/.github/workflows/reusable-workflow-terraform.yml b/.github/workflows/reusable-workflow-terraform.yml index 1bb2606079..e548a17fcb 100644 --- a/.github/workflows/reusable-workflow-terraform.yml +++ b/.github/workflows/reusable-workflow-terraform.yml @@ -1,8 +1,5 @@ --- on: # yamllint disable-line rule:truthy - pull_request: - branches: - - main workflow_call: inputs: component: @@ -38,14 +35,14 @@ jobs: id: checkout uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4.0.0 - # - name: Prepare Environment - # id: prepare_environment - # shell: bash - # run: | - # workingDirectory=$(yq -e ".${{ inputs.component }}" .github/path-filter/terraform.yml | sed 's/.\{3\}$//') - # export workingDirectory + - name: Prepare Environment + id: prepare_environment + shell: bash + run: | + workingDirectory=$(yq -e ".${{ inputs.component }}" .github/path-filter/terraform.yml | sed 's/.\{3\}$//') + export workingDirectory - # echo "working-directory=${workingDirectory}" >>"${GITHUB_ENV}" + echo "working-directory=${workingDirectory}" >>"${GITHUB_ENV}" - name: Checkov if: github.ref != 'refs/heads/main'