Skip to content

Commit 5814afb

Browse files
committed
Fix mdbook ci & fix yUpdate always present in serialized commits
1 parent fb4d369 commit 5814afb

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

.dagger/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ export class AtomicServer {
149149
.withMountedDirectory('/docs', actualDocsDirectory)
150150
.withWorkdir('/docs')
151151
.withExec(['mdbook', 'build'])
152-
.directory('/docs/build/html');
152+
.directory('/docs/build');
153153
}
154154

155155
@func()

lib/src/commit.rs

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -504,11 +504,13 @@ impl Commit {
504504
);
505505
}
506506
if let Some(y_update) = &self.y_update {
507-
let mut newy_update = PropVals::new();
508-
for (prop, val) in y_update {
509-
newy_update.insert(prop.into(), val.clone());
507+
if !y_update.is_empty() {
508+
let mut newy_update = PropVals::new();
509+
for (prop, val) in y_update {
510+
newy_update.insert(prop.into(), val.clone());
511+
}
512+
resource.set_unsafe(urls::Y_UPDATE.into(), newy_update.into());
510513
}
511-
resource.set_unsafe(urls::Y_UPDATE.into(), newy_update.into());
512514
}
513515
resource.set_unsafe(
514516
SIGNER.into(),

0 commit comments

Comments
 (0)