@@ -304,19 +304,25 @@ jobs:
304
304
CATALOGS=$( find ${{ github.workspace }}/artifacts/ -name "job-catalog*" )
305
305
306
306
PORTABLE=$(jq -r '.builds[].artifacts[] | select(.kind == "portable" and .platform == "windows" and .configuration=="release") | .filename' ${CATALOGS})
307
- PORTABLE=$(find ${{ github.workspace }}/artifacts/ -name $PORTABLE)
308
- echo ::set-output name=portable_file::${PORTABLE}
309
- echo ::set-output name=portable_name::workrave-windows-${VERSION}-portable.zip
307
+ if [ -n "$PORTABLE" ]; then
308
+ PORTABLE=$(find ${{ github.workspace }}/artifacts/ -name $PORTABLE)
309
+ echo ::set-output name=portable_file::${PORTABLE}
310
+ echo ::set-output name=portable_name::workrave-windows-${VERSION}-portable.zip
311
+ fi
310
312
311
313
INSTALLER=$(jq -r '.builds[].artifacts[] | select(.kind == "installer" and .platform == "windows" and .configuration=="release") | .filename' ${CATALOGS})
312
- INSTALLER=$(find ${{ github.workspace }}/artifacts/ -name $INSTALLER)
313
- echo ::set-output name=installer_file::${INSTALLER}
314
- echo ::set-output name=installer_name::workrave-windows-${VERSION}.exe
314
+ if [ -n "$INSTALLER" ]; then
315
+ INSTALLER=$(find ${{ github.workspace }}/artifacts/ -name $INSTALLER)
316
+ echo ::set-output name=installer_file::${INSTALLER}
317
+ echo ::set-output name=installer_name::workrave-windows-${VERSION}.exe
318
+ fi
315
319
316
320
SOURCE=$(jq -r '.builds[].artifacts[] | select(.kind == "source" and .platform == "all" and .configuration=="none") | .filename' ${CATALOGS})
317
- SOURCE=$(find ${{ github.workspace }}/artifacts/ -name $SOURCE)
318
- echo ::set-output name=source_file::${SOURCE}
319
- echo ::set-output name=source_name::workrave-${VERSION}.tar.gz
321
+ if [ -n "$SOURCE" ]; then
322
+ SOURCE=$(find ${{ github.workspace }}/artifacts/ -name $SOURCE)
323
+ echo ::set-output name=source_file::${SOURCE}
324
+ echo ::set-output name=source_name::workrave-${VERSION}.tar.gz
325
+ fi
320
326
321
327
- name : Generate news
322
328
run : |
0 commit comments