diff --git a/.github/generated/ast_changes_watch_list.yml b/.github/generated/ast_changes_watch_list.yml index b4c071e8b4c27..4c10d00385b0d 100644 --- a/.github/generated/ast_changes_watch_list.yml +++ b/.github/generated/ast_changes_watch_list.yml @@ -3,6 +3,7 @@ src: - '.github/generated/ast_changes_watch_list.yml' + - '.github/workflows/ci.yml' - 'apps/oxlint/src-js/generated/constants.ts' - 'apps/oxlint/src-js/generated/deserialize.js' - 'apps/oxlint/src-js/generated/keys.ts' diff --git a/tasks/ast_tools/src/output/yaml.rs b/tasks/ast_tools/src/output/yaml.rs index f361bc52dd0ac..6679af7c0cb72 100644 --- a/tasks/ast_tools/src/output/yaml.rs +++ b/tasks/ast_tools/src/output/yaml.rs @@ -10,15 +10,21 @@ pub fn print_yaml(code: &str, generator_path: &str) -> String { impl Output { /// Generate a watch list YAML file. /// - /// The path of the watch list itself and `tasks/ast_tools/src/**` are added to the list. + /// The path of the watch list itself, `tasks/ast_tools/src/**`, and the CI workflow file are added to the list. pub fn yaml_watch_list<'s>( watch_list_path: &'s str, paths: impl IntoIterator, ) -> Self { - let mut paths = paths - .into_iter() - .chain([watch_list_path, "tasks/ast_tools/src/**"]) - .collect::>(); + let additional_paths = [ + // This watch list file + watch_list_path, + // All code in `ast_tools` + "tasks/ast_tools/src/**", + // Workflow which runs `ast_tools` + ".github/workflows/ci.yml", + ]; + + let mut paths = paths.into_iter().chain(additional_paths).collect::>(); paths.sort_unstable(); let mut code = "src:\n".to_string();