Skip to content

Commit

Permalink
fix: artifacts-ready
Browse files Browse the repository at this point in the history
  • Loading branch information
skylar-simoncelli authored Jan 23, 2025
1 parent dd005a8 commit 02214d0
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -152,15 +152,17 @@ jobs:
id-token: write
contents: write
if: >
(needs.upload-to-s3.result == 'success' || needs.upload-to-s3.result == 'skipped') &&
(needs.download-from-s3.result == 'success' || needs.download-from-s3.result == 'skipped')
always() && (
(inputs.no-build != 'true' && needs.upload-to-s3.result == 'success') ||
(inputs.no-build == 'true' && needs.download-from-s3.result == 'success')
)
steps:
- name: Artifacts Ready
run: |
if [[ "${{ needs.upload-to-s3.result }}" == "success" ]]; then
if [[ "${{ inputs.no-build }}" != "true" ]]; then
echo "Artifacts have been compiled and uploaded to S3"
elif [[ "${{ needs.download-from-s3.result }}" == "success" ]]; then
echo "Previously built artifacts were downloaded from S3."
else
echo "Previously built artifacts were downloaded from S3"
fi
build-and-publish-ecr:
Expand Down

0 comments on commit 02214d0

Please sign in to comment.