From e98485da3f59aff7ebeb6095940b9574935e889f Mon Sep 17 00:00:00 2001 From: ISSOtm Date: Tue, 22 Sep 2020 02:59:38 +0200 Subject: [PATCH] Make code style errors fail their CI job Mimics the behavior of the old Travis script --- .github/workflows/checkpatch.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/checkpatch.yml b/.github/workflows/checkpatch.yml index b3bf344f..7a6f9ce9 100644 --- a/.github/workflows/checkpatch.yml +++ b/.github/workflows/checkpatch.yml @@ -21,4 +21,5 @@ jobs: - name: Checkpatch working-directory: rgbds run: | - make checkpatch CHECKPATCH=./checkpatch.pl "BASE_REF=${{ github.event.pull_request.base.sha }}" Q= + make checkpatch CHECKPATCH=./checkpatch.pl "BASE_REF=${{ github.event.pull_request.base.sha }}" Q= | tee log + if grep -q ERROR: log; then exit 1; else exit 0; fi