Skip to content

Commit 2db7d10

Browse files
committed
github actions: Get the correct return code
We want the return code of our python scripts, not of tee
1 parent 08dfef3 commit 2db7d10

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.github/workflows/validate-kernel-commits.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ jobs:
4141
working-directory: kernel-src-tree-tools
4242
run: |
4343
set +e # Don't exit on error, we want to capture the output
44+
set -o pipefail # Capture exit code from python script, not tee
4445
python3 check_kernel_commits.py \
4546
--repo .. \
4647
--pr_branch "${{ github.head_ref }}" \
@@ -104,6 +105,7 @@ jobs:
104105
working-directory: kernel-src-tree-tools
105106
run: |
106107
set +e # Don't exit on error, we want to capture the output
108+
set -o pipefail # Capture exit code from python script, not tee
107109
python3 run_interdiff.py \
108110
--repo .. \
109111
--pr_branch "${{ github.head_ref }}" \

0 commit comments

Comments
 (0)