Skip to content

Commit

Permalink
Improve cacert upload check logic
Browse files Browse the repository at this point in the history
  • Loading branch information
gdams authored Apr 25, 2024
1 parent fb1620f commit c4654f0
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/cacert-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,8 @@ jobs:
run: |
FILE=$(ls ca-certificates/debian/build/ospackage/*.deb)
echo "File to upload: ${FILE}"
if jf rt s "deb/pool/main/a/adoptium-ca-certificates/$(basename $FILE)" > /dev/null; then
echo file_exists=true >> "$GITHUB_OUTPUT"
else
FILE_EXITS=$(jf rt s --count=true "deb/pool/main/a/adoptium-ca-certificates/$(basename $FILE)")
if [[ "$FILE_EXITS" == "0" ]]; then
echo file_exists=false >> "$GITHUB_OUTPUT"
fi
Expand Down

0 comments on commit c4654f0

Please sign in to comment.