Skip to content

Commit 7da3584

Browse files
committed
Fix release CI step
1 parent 8cd134c commit 7da3584

File tree

1 file changed

+15
-9
lines changed

1 file changed

+15
-9
lines changed

.github/workflows/ci.yaml

+15-9
Original file line numberDiff line numberDiff line change
@@ -304,19 +304,25 @@ jobs:
304304
CATALOGS=$( find ${{ github.workspace }}/artifacts/ -name "job-catalog*" )
305305
306306
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
310312
311313
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
315319
316320
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
320326
321327
- name: Generate news
322328
run: |

0 commit comments

Comments
 (0)