Skip to content

Commit

Permalink
ci: Fix writing on file just read
Browse files Browse the repository at this point in the history
  • Loading branch information
alecandido committed May 20, 2024
1 parent 06dfc79 commit edcc497
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions crates/bump-versions.nu
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ cd ..

let version = "x.x.x"

open Cargo.toml | update workspace.package.version $version | save -f Cargo.toml
open Cargo.toml | update workspace.package.version $version
| collect { save -f Cargo.toml }

let crates = ls crates | where type == dir | get name | filter {|n| $"($n)/Cargo.toml" | path exists } | each {|p| split row "/" | last}

Expand All @@ -17,7 +18,7 @@ def update-manifest [] {

def replace-manifest [] {
let path = $"crates/($in)/Cargo.toml"
open $path | update-manifest | to toml | save -f $path
open $path | update-manifest | to toml | collect { save -f $path }
$path
}

Expand Down

0 comments on commit edcc497

Please sign in to comment.