Skip to content

Commit

Permalink
Optimize the file judgment logic
Browse files Browse the repository at this point in the history
  • Loading branch information
laityts committed Jul 30, 2022
1 parent 8a8608c commit 5f86cb0
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,11 @@ jobs:
fi
fi
ls
FILENAME="$(ls -lS * | head -1 | awk '{print $9}')"
FILENAME="$(find ./ -type f -size +300M | ls -lS * | head -1 | awk '{print $9}')"
if [[ -z "$FILENAME" ]]; then
exit 1
echo "The file was not downloaded successfully"
fi
echo "FILENAME: $FILENAME"
FILENAME=$(basename ${FILENAME})
NAME=$(basename $FILENAME .zip)
Expand Down

0 comments on commit 5f86cb0

Please sign in to comment.