Skip to content

Commit 4a77933

Browse files
gdamssteelhead31karianna
authored
Improve cacert upload check logic (#869)
* 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>
1 parent fb1620f commit 4a77933

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

.github/workflows/cacert-publish.yml

+2-3
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,8 @@ jobs:
4545
run: |
4646
FILE=$(ls ca-certificates/debian/build/ospackage/*.deb)
4747
echo "File to upload: ${FILE}"
48-
if jf rt s "deb/pool/main/a/adoptium-ca-certificates/$(basename $FILE)" > /dev/null; then
49-
echo file_exists=true >> "$GITHUB_OUTPUT"
50-
else
48+
FILE_EXISTS=$(jf rt s --count=true "deb/pool/main/a/adoptium-ca-certificates/$(basename $FILE)")
49+
if [[ "$FILE_EXISTS" == "0" ]]; then
5150
echo file_exists=false >> "$GITHUB_OUTPUT"
5251
fi
5352

0 commit comments

Comments
 (0)