We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fb1620f commit 4a77933Copy full SHA for 4a77933
.github/workflows/cacert-publish.yml
@@ -45,9 +45,8 @@ jobs:
45
run: |
46
FILE=$(ls ca-certificates/debian/build/ospackage/*.deb)
47
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
+ FILE_EXISTS=$(jf rt s --count=true "deb/pool/main/a/adoptium-ca-certificates/$(basename $FILE)")
+ if [[ "$FILE_EXISTS" == "0" ]]; then
51
echo file_exists=false >> "$GITHUB_OUTPUT"
52
fi
53
0 commit comments