Upload CodeBuild artifacts *if* they exist
问题 I have a simple CodeBuild spec that defines artifacts to be uploaded after tests run: artifacts: files: - cypress/**/*.png discard-paths: yes These artifacts are only generated if the test-action fails (a screenshot is captured of the failing test screen) and are being successfully uploaded to S3. In the case that tests succeed, no .png files will be generated and the CodeBuild action fails: [Container] 2018/09/21 20:06:34 Expanding cypress/**/*.png [Container] 2018/09/21 20:06:34 Phase