Skip to content
Snippets Groups Projects
Unverified Commit e33f14e8 authored by Erik Johnston's avatar Erik Johnston Committed by GitHub
Browse files

Don't fail CI when lint-newfile job was skipped (#10529)

parent a36d77c5
No related branches found
No related tags found
No related merge requests found
...@@ -8,7 +8,7 @@ on: ...@@ -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: ...@@ -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
......
Fix CI to not break when run against branches rather than pull requests.
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