Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
ssddOnTop committed Nov 5, 2024
1 parent db77ad8 commit da25221
Showing 1 changed file with 2 additions and 25 deletions.
27 changes: 2 additions & 25 deletions workspace/gh-workflow/src/workflow.rs
Original file line number Diff line number Diff line change
Expand Up @@ -360,40 +360,17 @@ pub struct Step<Ty> {
impl Step<Run> {
pub fn run<T: AsRef<str>>(self, run: T) -> Step<Run> {
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
}
}
}

impl Step<Uses> {
pub fn uses<T: AsRef<str>>(self, uses: T) -> Step<Uses> {
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
}
}
}
Expand Down

0 comments on commit da25221

Please sign in to comment.