mirror of
https://github.com/aws-actions/configure-aws-credentials.git
synced 2026-08-31 05:35:04 +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
|
||||
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
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user