From db2e57f0bb0664489287d29678db7af7a33faf85 Mon Sep 17 00:00:00 2001 From: Tushar Mathur Date: Wed, 6 Nov 2024 20:02:13 +0530 Subject: [PATCH] update nightly command --- workspace/gh-workflow-gen/src/main.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/workspace/gh-workflow-gen/src/main.rs b/workspace/gh-workflow-gen/src/main.rs index f88bf50..14404ec 100644 --- a/workspace/gh-workflow-gen/src/main.rs +++ b/workspace/gh-workflow-gen/src/main.rs @@ -18,7 +18,7 @@ fn main() { ); let nightly = Job::new("Nightly") - .add_step(Step::uses("actions", "checkout", 4).name("Checkout Code")) + .add_step(Step::checkout()) .add_step( // TODO: Rust Tool Chain can be a separate struct Step::uses("actions-rust-lang", "setup-rust-toolchain", 1) @@ -27,8 +27,7 @@ fn main() { ) .add_step( // TODO: Cargo fmt command should be more type-safe - Step::run("cargo +nightly fmt --all-features --workspace -- check") - .name("Run Fmt"), + Step::run("cargo +nightly fmt --all-features --workspace -- check").name("Run Fmt"), ) .add_step( // TODO: Cargo clippy command should be more type-safe