infra Actions: If no coding style error, no comment
authorJunsuChoi <jsuya.choi@samsung.com>
Mon, 26 Apr 2021 07:20:35 +0000 (16:20 +0900)
committerJunsuChoi <jsuya.choi@samsung.com>
Thu, 29 Apr 2021 03:01:08 +0000 (12:01 +0900)
and change action name

.github/workflows/actions.yml
.github/workflows/actions_cpplint.yml
.github/workflows/cpp_lint_check.sh

index 14d3730..d680a16 100644 (file)
@@ -1,4 +1,4 @@
-name: Continuous-integration
+name: Build Test
 
 on:
   pull_request:
index da70616..fe42935 100644 (file)
@@ -1,4 +1,4 @@
-name: PullRequest_Checker
+name: Check Commit
 
 on:
   pull_request:
@@ -6,7 +6,7 @@ on:
       - master
 
 jobs:
-  build:
+  coding-style:
     runs-on: ubuntu-latest
     steps:
     - uses: actions/checkout@v2
index c130da3..405f9e0 100644 (file)
@@ -37,7 +37,7 @@ cpplint --filter=-,\
 
 PAYLOAD_CPPLINT=`cat cpp-report.txt`
 COMMENTS_URL=$(cat $GITHUB_EVENT_PATH | jq -r .pull_request.comments_url)
-  
+
 echo $COMMENTS_URL
 echo "Cppcheck errors:"
 echo $PAYLOAD_CPPLINT
@@ -47,13 +47,8 @@ if [[ $PAYLOAD_CPPLINT == *"Total errors found: "* ]]; then
   OUTPUT+=$'\n```\n'
   OUTPUT+="$PAYLOAD_CPPLINT"
   OUTPUT+=$'\n```\n' 
-
-else
-  OUTPUT+=$'\n**CODING STYLE CHECK**:\n'
-  OUTPUT+=$'\n```\n'
-  OUTPUT+="Perfect."
-  OUTPUT+=$'\n```\n' 
 fi
+
 PAYLOAD=$(echo '{}' | jq --arg body "$OUTPUT" '.body = $body')
 
 curl -s -S -H "Authorization: token $GITHUB_TOKEN" --header "Content-Type: application/vnd.github.VERSION.text+json" --data "$PAYLOAD" "$COMMENTS_URL"