mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2024-10-01 11:49:51 -04:00
Fix the tests-done
github actions step, again (#10512)
This commit is contained in:
parent
fb086edaed
commit
a6ea32a798
21
.github/workflows/tests.yml
vendored
21
.github/workflows/tests.yml
vendored
@ -367,13 +367,16 @@ jobs:
|
|||||||
- name: Set build result
|
- name: Set build result
|
||||||
env:
|
env:
|
||||||
NEEDS_CONTEXT: ${{ toJSON(needs) }}
|
NEEDS_CONTEXT: ${{ toJSON(needs) }}
|
||||||
# the `jq` incantation dumps out a series of "<job> <result>" lines
|
# the `jq` incantation dumps out a series of "<job> <result>" lines.
|
||||||
|
# we set it to an intermediate variable to avoid a pipe, which makes it
|
||||||
|
# hard to set $rc.
|
||||||
run: |
|
run: |
|
||||||
set -o pipefail
|
rc=0
|
||||||
jq -r 'to_entries[] | [.key,.value.result] | join(" ")' \
|
results=$(jq -r 'to_entries[] | [.key,.value.result] | join(" ")' <<< $NEEDS_CONTEXT)
|
||||||
<<< $NEEDS_CONTEXT |
|
while read job result ; do
|
||||||
while read job result; do
|
if [ "$result" != "success" ]; then
|
||||||
if [ "$result" != "success" ]; then
|
echo "::set-failed ::Job $job returned $result"
|
||||||
echo "::set-failed ::Job $job returned $result"
|
rc=1
|
||||||
fi
|
fi
|
||||||
done
|
done <<< $results
|
||||||
|
exit $rc
|
||||||
|
1
changelog.d/10512.misc
Normal file
1
changelog.d/10512.misc
Normal file
@ -0,0 +1 @@
|
|||||||
|
Update the `tests-done` Github Actions status.
|
Loading…
Reference in New Issue
Block a user