diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index a33a3588c..cdf338458 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -37,7 +37,7 @@ jobs: cmd="ansible-lint --parseable --nocolor --profile=shared" # don't want to annotate through GHA unset GITHUB_ACTIONS - $cmd > branch.output || echo "Branch linting output written" + $cmd | tee branch.output || echo "Branch linting output written" git checkout main $cmd > main.output || echo "Main linting output written" export GITHUB_ACTIONS=true @@ -89,11 +89,11 @@ jobs: git fetch --unshallow origin main for version in 3.6 3.7 3.8 3.9 ; do ansible-test sanity --verbose --docker --python $version --color --coverage --failure-ok - done 2>&1 | tee branch.output + done 2>&1 | tee -a branch.output git checkout main for version in 3.6 3.7 3.8 3.9 ; do ansible-test sanity --verbose --docker --python $version --color --coverage --failure-ok - done > main.output 2>&1 + done >> main.output 2>&1 for key in branch main; do grep -E "(ERROR|FATAL):" "$key.output" | grep -v "issue(s) which need to be resolved\|See error output above for details." |