Skip to content

Commit

Permalink
Improve cacert upload check logic (#869)
Browse files Browse the repository at this point in the history
* Improve cacert upload check logic

* Fix Typo

Co-authored-by: Martijn Verburg <martijnverburg@gmail.com>

* Fix typo

Co-authored-by: Martijn Verburg <martijnverburg@gmail.com>

---------

Co-authored-by: Scott Fryer <60462088+steelhead31@users.noreply.github.com>
Co-authored-by: Martijn Verburg <martijnverburg@gmail.com>
  • Loading branch information
3 people authored Apr 25, 2024
1 parent fb1620f commit 4a77933
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_EXISTS=$(jf rt s --count=true "deb/pool/main/a/adoptium-ca-certificates/$(basename $FILE)")
if [[ "$FILE_EXISTS" == "0" ]]; then
echo file_exists=false >> "$GITHUB_OUTPUT"
fi
Expand Down

0 comments on commit 4a77933

Please sign in to comment.