We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3e9e574 commit 35187c7Copy full SHA for 35187c7
src/bootstrap/test.rs
@@ -1174,6 +1174,11 @@ impl Step for ExpandYamlAnchors {
1174
/// appropriate configuration for all our CI providers. This step ensures the tool was called
1175
/// by the user before committing CI changes.
1176
fn run(self, builder: &Builder<'_>) {
1177
+ // Note: `.github/` is not included in dist-src tarballs
1178
+ if !builder.src.join(".github/workflows/ci.yml").exists() {
1179
+ builder.info("Skipping YAML anchors check: GitHub Actions config not found");
1180
+ return;
1181
+ }
1182
builder.info("Ensuring the YAML anchors in the GitHub Actions config were expanded");
1183
builder.run_delaying_failure(
1184
&mut builder.tool_cmd(Tool::ExpandYamlAnchors).arg("check").arg(&builder.src),
0 commit comments