mirror of
https://mau.dev/maunium/synapse.git
synced 2024-10-01 01:36:05 -04:00
Don't fail CI when lint-newfile job was skipped (#10529)
This commit is contained in:
parent
a36d77c563
commit
e33f14e8d5
7
.github/workflows/tests.yml
vendored
7
.github/workflows/tests.yml
vendored
@ -8,7 +8,7 @@ on:
|
|||||||
concurrency:
|
concurrency:
|
||||||
group: ${{ github.workflow }}-${{ github.ref }}
|
group: ${{ github.workflow }}-${{ github.ref }}
|
||||||
cancel-in-progress: true
|
cancel-in-progress: true
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
lint:
|
lint:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
@ -374,6 +374,11 @@ jobs:
|
|||||||
rc=0
|
rc=0
|
||||||
results=$(jq -r 'to_entries[] | [.key,.value.result] | join(" ")' <<< $NEEDS_CONTEXT)
|
results=$(jq -r 'to_entries[] | [.key,.value.result] | join(" ")' <<< $NEEDS_CONTEXT)
|
||||||
while read job result ; do
|
while read job result ; do
|
||||||
|
# The newsfile lint may be skipped on non PR builds
|
||||||
|
if [ $result == "skipped" ] && [ $job == "lint-newsfile" ]; then
|
||||||
|
continue
|
||||||
|
fi
|
||||||
|
|
||||||
if [ "$result" != "success" ]; then
|
if [ "$result" != "success" ]; then
|
||||||
echo "::set-failed ::Job $job returned $result"
|
echo "::set-failed ::Job $job returned $result"
|
||||||
rc=1
|
rc=1
|
||||||
|
1
changelog.d/10529.misc
Normal file
1
changelog.d/10529.misc
Normal file
@ -0,0 +1 @@
|
|||||||
|
Fix CI to not break when run against branches rather than pull requests.
|
Loading…
Reference in New Issue
Block a user