From 383ad6b770446338aab0b91e171f9f95d3b63617 Mon Sep 17 00:00:00 2001 From: Doci Mou <22457019+dmou@users.noreply.github.com> Date: Mon, 28 Jun 2021 19:08:24 -0400 Subject: [PATCH] parse commit time locally --- .github/workflows/ci-test-pr.yml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci-test-pr.yml b/.github/workflows/ci-test-pr.yml index f487abb28f..701f2ced27 100644 --- a/.github/workflows/ci-test-pr.yml +++ b/.github/workflows/ci-test-pr.yml @@ -121,13 +121,14 @@ jobs: GITHUB_JOB_NAME: functional-tests GITHUB_RUN_ID: ${{ github.run_id }} run: | + GIT_COMMITTED_AT=$(git log -1 --format=%ct origin) docker-compose exec -T \ -e GIT_COMMIT_SHA=${{ env.GIT_COMMIT_SHA }} \ -e GIT_BRANCH=${{ env.GIT_BRANCH }} \ -e GITHUB_JOB_NAME=${{ env.GITHUB_JOB_NAME }} \ -e GITHUB_RUN_ID=${{ env.GITHUB_RUN_ID }} \ -e CC_TEST_REPORTER_ID=${{ env.CC_TEST_REPORTER_ID }} \ - -e GIT_COMMITTED_AT=${{ fromJSON(env.time) }} \ + -e GIT_COMMITTED_AT=${GIT_COMMITTED_AT}\ api test/test-coverage.sh @@ -180,13 +181,14 @@ jobs: GITHUB_JOB_NAME: unit-tests GITHUB_RUN_ID: ${{ github.run_id }} run: | + GIT_COMMITTED_AT=$(git log -1 --format=%ct origin) docker-compose exec -T \ -e GIT_COMMIT_SHA=${{ env.GIT_COMMIT_SHA }} \ -e GIT_BRANCH=${{ env.GIT_BRANCH }} \ -e GITHUB_JOB_NAME=${{ env.GITHUB_JOB_NAME }} \ -e GITHUB_RUN_ID=${{ env.GITHUB_RUN_ID }} \ -e CC_TEST_REPORTER_ID=${{ env.CC_TEST_REPORTER_ID }} \ - -e GIT_COMMITTED_AT=${{ fromJSON(env.time) }} \ + -e GIT_COMMITTED_AT=${GIT_COMMITTED_AT}\ api test/test-coverage.sh cleanup-and-notify: @@ -205,13 +207,14 @@ jobs: GIT_BRANCH: ${{ github.ref }} GITHUB_RUN_ID: ${{ github.run_id }} run: | + GIT_COMMITTED_AT=$(git log -1 --format=%ct origin) docker-compose exec -T \ -e GIT_COMMIT_SHA=${{ env.GIT_COMMIT_SHA }} \ -e GIT_BRANCH=${{ env.GIT_BRANCH }} \ -e GITHUB_JOB_NAME=${{ env.GITHUB_JOB_NAME }} \ -e GITHUB_RUN_ID=${{ env.GITHUB_RUN_ID }} \ -e CC_TEST_REPORTER_ID=${{ env.CC_TEST_REPORTER_ID }} \ - -e GIT_COMMITTED_AT=${{ fromJSON(env.time) }} \ + -e GIT_COMMITTED_AT=${GIT_COMMITTED_AT}\ api test/upload-coverage.sh - name: Notify Slack