Skip to content

Commit 99945dc

Browse files
authored
Update alioss-check.yml
1 parent 334c925 commit 99945dc

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

.github/workflows/alioss-check.yml

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -33,12 +33,10 @@ jobs:
3333
# Check the diff for alioss
3434
echo Check the diff for alioss
3535
ALIOSS=$(echo "$DIFF" | grep -E '^\+.*(alioss)' | wc -l)
36-
echo $ALIOSS
37-
echo "$DIFF" | grep -E '^\+.*(alioss)' > check.log
38-
if [ $(wc -l < check.log> -eq 0)]; then
39-
echo "No alioss found in changed content."
40-
else
41-
echo "alioss found in the changes. Please use upload to src/.vuepress/public/img."
42-
cat check.log
43-
exit 1
36+
if [ $($ALIOSS -eq 0)]; then
37+
echo "No alioss found in changed content.";
38+
exit 0;
4439
fi
40+
echo "alioss found in the changes. Please use upload to src/.vuepress/public/img."
41+
echo "$DIFF" | grep -E '^\+.*(alioss)' | tee -a output.log
42+
exit 1

0 commit comments

Comments
 (0)