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.
2 parents 36d85b4 + ed23707 commit 7cd11b7Copy full SHA for 7cd11b7
.github/workflows/lint.yml
@@ -2,7 +2,6 @@ name: lint code in pull request
2
3
on:
4
pull_request:
5
- types: [opened, edited, reopened]
6
7
jobs:
8
build:
@@ -22,6 +21,7 @@ jobs:
22
21
- name: checkpatch
23
run: |
24
git diff origin/${{ github.base_ref }} | ./checkpatch.pl --mailback --no-tree --ignore MAINTAINERS,FILE_PATH_CHANGES,SPDX_LICENSE_TAG - > checkpatch.txt || true
+ exit=0
25
if [ -s checkpatch.txt ]; then
26
errors=$(cat checkpatch.txt)
27
errors="${errors//'%'/'%25'}"
@@ -30,7 +30,7 @@ jobs:
30
echo "::error file=Checkpatch.txt::$errors"
31
exit=1
32
fi
33
- if [ ${exit} == 1 ]; then
+ if [ $exit = 1 ]; then
34
exit 1;
35
36
- name: output
0 commit comments