Skip to content

Commit

Permalink
ci: upload packages only if download step is successful
Browse files Browse the repository at this point in the history
  • Loading branch information
trombik committed Oct 26, 2024
1 parent 42a9062 commit 2119e31
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/poudriere.yml
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,10 @@ jobs:

- name: upload packages
id: packages-upload-step
if: success() || failure()

# if the outcome is failure `packages` directory contains compressed
# zip files. do not upload them.
if: steps.download-packages.outcome == success
uses: actions/upload-artifact@v4
with:
name: packages-${{ env.SAFE_PORT_NAME }}
Expand Down

0 comments on commit 2119e31

Please sign in to comment.