Skip to content

Commit

Permalink
Suppressed the exit code in case the document doesn't exist. (#763)
Browse files Browse the repository at this point in the history
  • Loading branch information
jefchien authored Nov 22, 2021
1 parent ee3e9b3 commit 34dab53
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -534,15 +534,12 @@ jobs:
- name: Create SSM package
run: |
ssm_pkg_version=`cat build/packages/VERSION`
aws ssm describe-document --name "testAWSDistroOTel-Collector" --version-name ${ssm_pkg_version} >/dev/null 2>&1
if [ $? -ne 0 ]; then
(aws ssm describe-document --name "testAWSDistroOTel-Collector" --version-name ${ssm_pkg_version} >/dev/null 2>&1) || {
pip3 install boto3
python3 tools/ssm/ssm_manifest.py ${ssm_pkg_version}
aws s3 cp build/packages/ssm s3://aws-otel-collector-test/ssm/${ssm_pkg_version} --recursive
python3 tools/ssm/ssm_create.py --no-default testAWSDistroOTel-Collector ${ssm_pkg_version} aws-otel-collector-test/ssm/${ssm_pkg_version} us-west-2
else
echo "SSM package ($ssm_pkg_version) already exists"
fi
}
- name: Upload to S3 in the testing stack
if: steps.e2etest-release.outputs.cache-hit != 'true'
Expand Down

0 comments on commit 34dab53

Please sign in to comment.