Skip to content
Snippets Groups Projects
Unverified Commit f1347bcf authored by Richard van der Hoff's avatar Richard van der Hoff Committed by GitHub
Browse files

Fix the tests-done Github Actions job (#10444)

parent 8ae0bdca
No related branches found
No related tags found
No related merge requests found
......@@ -347,7 +347,12 @@ jobs:
# a job which marks all the other jobs as complete, thus allowing PRs to be merged.
tests-done:
if: ${{ always() }}
needs:
- lint
- lint-crlf
- lint-newsfile
- lint-sdist
- trial
- trial-olddeps
- sytest
......@@ -355,4 +360,16 @@ jobs:
- complement
runs-on: ubuntu-latest
steps:
- run: "true"
\ No newline at end of file
- name: Set build result
env:
NEEDS_CONTEXT: ${{ toJSON(needs) }}
# the `jq` incantation dumps out a series of "<job> <result>" lines
run: |
set -o pipefail
jq -r 'to_entries[] | [.key,.value.result] | join(" ")' \
<<< $NEEDS_CONTEXT |
while read job result; do
if [ "$result" != "success" ]; then
echo "::set-failed ::Job $job returned $result"
fi
done
Update the `tests-done` Github Actions status.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment