ci: Run check_docs when code changes (#43188)
Closes #ISSUE Release Notes: - N/A *or* Added/Fixed/Improved ...
This commit is contained in:
@@ -23,6 +23,9 @@ mod vars;
|
||||
pub struct GenerateWorkflowArgs {}
|
||||
|
||||
pub fn run_workflows(_: GenerateWorkflowArgs) -> Result<()> {
|
||||
if !Path::new("crates/zed/").is_dir() {
|
||||
anyhow::bail!("xtask workflows must be ran from the project root");
|
||||
}
|
||||
let dir = Path::new(".github/workflows");
|
||||
|
||||
let workflows = vec![
|
||||
|
||||
@@ -25,7 +25,7 @@ pub(crate) fn run_tests() -> Workflow {
|
||||
"run_tests",
|
||||
r"^(docs/|script/update_top_ranking_issues/|\.github/(ISSUE_TEMPLATE|workflows/(?!run_tests)))",
|
||||
);
|
||||
let should_check_docs = PathCondition::new("run_docs", r"^docs/");
|
||||
let should_check_docs = PathCondition::new("run_docs", r"^(docs/|crates/.*\.rs)");
|
||||
let should_check_scripts = PathCondition::new(
|
||||
"run_action_checks",
|
||||
r"^\.github/(workflows/|actions/|actionlint.yml)|tooling/xtask|script/",
|
||||
|
||||
Reference in New Issue
Block a user