mirror of
https://github.com/aws-actions/configure-aws-credentials.git
synced 2026-09-05 06:25:08 +09:00
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:
@@ -4,6 +4,8 @@ set -ex
|
|||||||
|
|
||||||
# Update the integ test action workflow file with the commit ID to test
|
# 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|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
|
mkdir -p .github/workflows
|
||||||
cp test-workflow.yml .github/workflows
|
cp test-workflow.yml .github/workflows
|
||||||
git add .github/workflows
|
git add .github/workflows
|
||||||
|
|||||||
@@ -14,6 +14,10 @@ jobs:
|
|||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
|
- name: Print current build ID
|
||||||
|
run: |
|
||||||
|
echo Integration test run: BUILD_ID
|
||||||
|
|
||||||
- name: Configure AWS credentials
|
- name: Configure AWS credentials
|
||||||
uses: aws-actions/configure-aws-credentials@v1
|
uses: aws-actions/configure-aws-credentials@v1
|
||||||
with:
|
with:
|
||||||
|
|||||||
Reference in New Issue
Block a user