Skip to content

Commit c58e64e

Browse files
committed
Skip deployment if no token is provided
1 parent afb76bf commit c58e64e

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

.github/workflows/create-package.yml

+5
Original file line numberDiff line numberDiff line change
@@ -288,6 +288,11 @@ jobs:
288288
;;
289289
esac
290290
291+
if [ -z "$token" ]; then
292+
echo "No upload token provided, skipping upload"
293+
exit 0
294+
fi
295+
291296
if [ "${{ matrix.cpack_generator }}" == "DEB" ]; then
292297
response=$(curl -w "%{http_code}" --user "$token" -H "Content-Type: multipart/form-data" --data-binary "@${{ steps.build.outputs.package_path }}" "$url")
293298
elif [ "${{ matrix.cpack_generator }}" == "RPM" ]; then

0 commit comments

Comments
 (0)