Skip to content

Commit

Permalink
fix: drop v prefix from uses API
Browse files Browse the repository at this point in the history
  • Loading branch information
tusharmath committed Nov 29, 2024
1 parent cb9024a commit 94593f6
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion crates/gh-workflow/src/release_plz.rs
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ impl std::fmt::Display for Backend {

impl From<Release> for Step<Use> {
fn from(value: Release) -> Self {
let mut step = Step::uses("release-plz", "action", "0.5").name("Release Plz");
let mut step = Step::uses("release-plz", "action", "v0.5").name("Release Plz");

if let Some(command) = value.command {
step = step.add_with(("command", command.to_string()));
Expand Down
2 changes: 1 addition & 1 deletion crates/gh-workflow/src/toolchain.rs
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ impl Toolchain {

impl From<Toolchain> for Step<Use> {
fn from(value: Toolchain) -> Self {
let mut step = Step::uses("actions-rust-lang", "setup-rust-toolchain", 1.0)
let mut step = Step::uses("actions-rust-lang", "setup-rust-toolchain", "v1")
.name("Setup Rust Toolchain");

let toolchain = value
Expand Down
4 changes: 2 additions & 2 deletions crates/gh-workflow/src/workflow.rs
Original file line number Diff line number Diff line change
Expand Up @@ -463,7 +463,7 @@ impl StepValue {
) -> Self {
StepValue {
uses: Some(format!(
"{}/{}@v{}",
"{}/{}@{}",
owner.to_string(),
repo.to_string(),
version.to_string()
Expand Down Expand Up @@ -509,7 +509,7 @@ impl Step<Use> {

/// Creates a step pointing to the default GitHub's Checkout Action.
pub fn checkout() -> Step<Use> {
Step::uses("actions", "checkout", 4.0).name("Checkout Code")
Step::uses("actions", "checkout", "v4").name("Checkout Code")
}

/// Adds a new input to the step.
Expand Down

0 comments on commit 94593f6

Please sign in to comment.