diff --git a/.github/workflows/codingstyle.yml b/.github/workflows/codingstyle.yml index 24ef3b07..48f67b37 100644 --- a/.github/workflows/codingstyle.yml +++ b/.github/workflows/codingstyle.yml @@ -10,10 +10,10 @@ jobs: run: pip install cpplint - name: Check coding style run: | - cpplint --recursive --quiet --verbose=3 . + cpplint --recursive --quiet --verbose=3 . 2> tmp - name: Comment PR - if: ${{ failure() }} + if: ${{ failure() && github.event_name == 'pull_request' }} uses: thollander/actions-comment-pull-request@master with: - message: 'Example of message !' + message: ${{ cat tmp }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file