diff --git a/workspace/gh-workflow/src/workflow.rs b/workspace/gh-workflow/src/workflow.rs index 76fc6d0..e2f0400 100644 --- a/workspace/gh-workflow/src/workflow.rs +++ b/workspace/gh-workflow/src/workflow.rs @@ -360,20 +360,8 @@ pub struct Step { impl Step { pub fn run>(self, run: T) -> Step { Step { - id: self.id, - name: self.name, - if_condition: self.if_condition, - uses: self.uses, - with: self.with, run: Some(Run::new(run)), - - env: self.env, - timeout_minutes: self.timeout_minutes, - continue_on_error: self.continue_on_error, - working_directory: self.working_directory, - retry: self.retry, - artifacts: self.artifacts, - marker: Default::default(), + ..self } } } @@ -381,19 +369,8 @@ impl Step { impl Step { pub fn uses>(self, uses: T) -> Step { Step { - id: self.id, - name: self.name, - if_condition: self.if_condition, uses: Some(Uses::new(uses)), - with: self.with, - run: self.run, - env: self.env, - timeout_minutes: self.timeout_minutes, - continue_on_error: self.continue_on_error, - working_directory: self.working_directory, - retry: self.retry, - artifacts: self.artifacts, - marker: Default::default(), + ..self } } }