fix: Add unique build ID to workflow file, so that tests can be re-run for the same commit ID

This commit is contained in:
Clare Liguori
2020-02-04 15:59:54 -08:00
parent 23214f72d5
commit 51211f3751
2 changed files with 6 additions and 0 deletions
+2
View File
@@ -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
+4
View File
@@ -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: