Skip to content

Commit cbbde57

Browse files
authored
Refactor validation script execution in workflow
1 parent 7e2bfea commit cbbde57

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

.github/workflows/pr-validate.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,8 @@ jobs:
4646
id: validate
4747
working-directory: ${{ github.workspace }}
4848
run: |
49-
python .github/scripts/validate_pr.py changed_files.txt > result.txt 2>&1
50-
echo "exit_code=$?" >> $GITHUB_OUTPUT
51-
cat result.txt
49+
python .github/scripts/validate_pr.py changed_files.txt 2>&1 | tee result.txt
50+
echo "exit_code=${PIPESTATUS[0]}" >> $GITHUB_OUTPUT
5251
5352
- name: Print result
5453
if: always()

0 commit comments

Comments
 (0)