From c13f71a646a53de0875e7fca492581928d631a86 Mon Sep 17 00:00:00 2001 From: Okan Kocabalkanli Date: Tue, 3 Dec 2024 15:07:42 -0500 Subject: [PATCH] added commit_date --- .github/workflows/integration-test.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/integration-test.yml b/.github/workflows/integration-test.yml index 18936b8eb5..b71eae6143 100644 --- a/.github/workflows/integration-test.yml +++ b/.github/workflows/integration-test.yml @@ -1006,6 +1006,12 @@ jobs: path: go.mod key: performance-tracking-test-${{ github.sha }}-${{ matrix.arrays.os }}-${{ matrix.arrays.arc }}-${{ matrix.arrays.test_dir }} + - name: Set Commit Date to Terraform Variable + id: set_commit_date + run: | + echo "commit_date=$(git show -s --format=%ci ${{ github.sha }})" >> $GITHUB_OUTPUT + + - name: Verify Terraform version if: steps.performance-tracking.outputs.cache-hit != 'true' run: terraform --version @@ -1023,6 +1029,7 @@ jobs: if terraform apply --auto-approve \ -var="ssh_key_value=${PRIVATE_KEY}" \ -var="cwa_github_sha=${GITHUB_SHA}" \ + -var="cwa_github_sha_date=${{steps.set_commit_date.outputs.commit_date}}" \ -var="ami=${{ matrix.arrays.ami }}" \ -var="arc=${{ matrix.arrays.arc }}" \ -var="s3_bucket=${S3_INTEGRATION_BUCKET}" \