From b929ec9c2eda9ebefbc480c49660959f6233f77a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Le=20Bihan?= Date: Sun, 23 May 2021 20:43:25 +0200 Subject: [PATCH] should work --- .github/workflows/codingstyle.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/codingstyle.yml b/.github/workflows/codingstyle.yml index ef1825d7..13263512 100644 --- a/.github/workflows/codingstyle.yml +++ b/.github/workflows/codingstyle.yml @@ -1,5 +1,5 @@ name: Check coding style -on: [push] +on: [push, pull_request] jobs: Building: @@ -11,9 +11,10 @@ jobs: - name: Check coding style run: | cpplint --recursive --quiet --verbose=3 . 2> tmp + echo "CPP_LINT_LOG=$(cat tmp)" >> $GITHUB_ENV - name: Comment PR if: ${{ failure() && github.event_name == 'pull_request' }} uses: thollander/actions-comment-pull-request@master with: - message: ${{ github.event_name }} + message: ${{ env.CPP_LINT_LOG }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file