Skip to content

Commit 7642e2d

Browse files
authored
Update pr-comment-artifacts.yaml
Signed-off-by: Kevin Z <zyxkad@gmail.com>
1 parent 210a651 commit 7642e2d

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

.github/workflows/pr-comment-artifacts.yaml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,13 @@ jobs:
4141
echo "Getting previous logs: $LOG_URL"
4242
gh api "$LOG_URL" >_logs.zip
4343
echo "Unzipping logs"
44-
unzip -p _logs.zip >_build.txt
44+
if ! unzip -p _logs.zip >_build.txt ; then
45+
if [ $? -eq 1 ]; then
46+
echo "::warning::Logs are empty, is runner okay?"
47+
exit 0
48+
fi
49+
exit $?
50+
fi
4551
4652
echo "Parsing logs"
4753
function parse_var {

0 commit comments

Comments
 (0)