Skip to content

Commit

Permalink
overwrite file with awk
Browse files Browse the repository at this point in the history
  • Loading branch information
tluijken committed Dec 21, 2023
1 parent 23b3083 commit 4dc943c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/cargo-build-and-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ jobs:
with:
useConfigFile: true
- name: "Overwrite version numbers"
run: awk 'NR==1,/version = "0.1.0"/{sub(/version = "0.1.0"/, "version = \"'$GitVersion_SemVer'\"")} 1' Cargo.toml
run: awk 'NR==1,/version = "0.1.0"/{sub(/version = "0.1.0"/, "version = \"'$GitVersion_SemVer'\"")} 1' Cargo.toml > Cargo.tmp && mv Cargo.tmp Cargo.toml
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
Expand Down

0 comments on commit 4dc943c

Please sign in to comment.