We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 334c925 commit 99945dcCopy full SHA for 99945dc
.github/workflows/alioss-check.yml
@@ -33,12 +33,10 @@ jobs:
33
# Check the diff for alioss
34
echo Check the diff for alioss
35
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
+ if [ $($ALIOSS -eq 0)]; then
+ echo "No alioss found in changed content.";
+ exit 0;
44
fi
+ echo "alioss found in the changes. Please use upload to src/.vuepress/public/img."
+ echo "$DIFF" | grep -E '^\+.*(alioss)' | tee -a output.log
+ exit 1
0 commit comments