File tree Expand file tree Collapse file tree 3 files changed +5
-2
lines changed Expand file tree Collapse file tree 3 files changed +5
-2
lines changed Original file line number Diff line number Diff line change 4747 }
4848
4949 check_pattern "run_action_checks" '^\.github/(workflows/|actions/|actionlint.yml)|tooling/xtask|script/' -qP
50- check_pattern "run_docs" '^docs/' -qP
50+ check_pattern "run_docs" '^( docs/|crates/.*\.rs) ' -qP
5151 check_pattern "run_licenses" '^(Cargo.lock|script/.*licenses)' -qP
5252 check_pattern "run_nix" '^(nix/|flake\.|Cargo\.|rust-toolchain.toml|\.cargo/config.toml)' -qP
5353 check_pattern "run_tests" '^(docs/|script/update_top_ranking_issues/|\.github/(ISSUE_TEMPLATE|workflows/(?!run_tests)))' -qvP
Original file line number Diff line number Diff line change @@ -23,6 +23,9 @@ mod vars;
2323pub struct GenerateWorkflowArgs { }
2424
2525pub fn run_workflows ( _: GenerateWorkflowArgs ) -> Result < ( ) > {
26+ if !Path :: new ( "crates/zed/" ) . is_dir ( ) {
27+ anyhow:: bail!( "xtask workflows must be ran from the project root" ) ;
28+ }
2629 let dir = Path :: new ( ".github/workflows" ) ;
2730
2831 let workflows = vec ! [
Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ pub(crate) fn run_tests() -> Workflow {
2525 "run_tests" ,
2626 r"^(docs/|script/update_top_ranking_issues/|\.github/(ISSUE_TEMPLATE|workflows/(?!run_tests)))" ,
2727 ) ;
28- let should_check_docs = PathCondition :: new ( "run_docs" , r"^docs/" ) ;
28+ let should_check_docs = PathCondition :: new ( "run_docs" , r"^( docs/|crates/.*\.rs) " ) ;
2929 let should_check_scripts = PathCondition :: new (
3030 "run_action_checks" ,
3131 r"^\.github/(workflows/|actions/|actionlint.yml)|tooling/xtask|script/" ,
You can’t perform that action at this time.
0 commit comments