mirror of
https://github.com/aws-actions/configure-aws-credentials.git
synced 2026-08-28 05:05:12 +09:00
25 lines
710 B
Bash
Executable File
25 lines
710 B
Bash
Executable File
#!/bin/bash
|
|
|
|
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
|
|
git commit -m "Test commit $GIT_COMMIT_ID"
|
|
|
|
# Trigger the action workflow
|
|
git push origin HEAD:integ-tests
|
|
|
|
# Validate that the action workflow succeeds
|
|
# Exit codes: success = 0; failure = 1; pending = 2; no status = 3
|
|
while hub ci-status; [ $? -ge 2 ]; do
|
|
echo "waiting for test workflow to complete..."
|
|
sleep 5
|
|
done
|
|
|
|
hub ci-status
|