From 51211f37517de624a67153ef5cdb77febddb182d Mon Sep 17 00:00:00 2001 From: Clare Liguori Date: Tue, 4 Feb 2020 15:59:54 -0800 Subject: [PATCH] fix: Add unique build ID to workflow file, so that tests can be re-run for the same commit ID --- run_integ_test.sh | 2 ++ test-workflow.yml | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/run_integ_test.sh b/run_integ_test.sh index 8e9c733..d1f8381 100755 --- a/run_integ_test.sh +++ b/run_integ_test.sh @@ -4,6 +4,8 @@ set -ex # Update the integ test action workflow file with the commit ID to test sed -i "s|aws-actions/configure-aws-credentials@v1|aws-actions/configure-aws-credentials@$GIT_COMMIT_ID|g" test-workflow.yml +sed -i "s|BUILD_ID|$CODEBUILD_BUILD_ID|g" test-workflow.yml + mkdir -p .github/workflows cp test-workflow.yml .github/workflows git add .github/workflows diff --git a/test-workflow.yml b/test-workflow.yml index 69c245b..88bff7c 100644 --- a/test-workflow.yml +++ b/test-workflow.yml @@ -14,6 +14,10 @@ jobs: - name: Checkout uses: actions/checkout@v2 + - name: Print current build ID + run: | + echo Integration test run: BUILD_ID + - name: Configure AWS credentials uses: aws-actions/configure-aws-credentials@v1 with: