Skip to content

Commit 2b5acd0

Browse files
committed
Test find and replace
1 parent 2e06ae4 commit 2b5acd0

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

.github/workflows/build.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,15 @@ jobs:
7171
tagFormat: v${version}-beta
7272
id: version_check
7373

74+
- name: Find and Replace
75+
uses: shitiomatic/str-replace@master
76+
with:
77+
find: "${version}"
78+
replace: "${version}-beta"
79+
include: "Cargo.toml"
80+
7481
- name: Publish Release
7582
uses: actions-rs/cargo@v1
7683
with:
77-
command: sed -i -e 's/${version}/${version}-beta/g' /tmp/file.txt && cargo publish --token ${{ secrets.CRATES_IO_TOKEN }} --allow-dirty --dry-run
84+
command: cargo publish --token ${{ secrets.CRATES_IO_TOKEN }} --allow-dirty --dry-run
7885

0 commit comments

Comments
 (0)