Correct sed replacement when called in a bash file

This commit is contained in:
Pavan Kumar Sunkara 2020-08-25 12:45:06 +02:00
parent 8a845eda7b
commit 6d46583f0f

View file

@ -12,7 +12,7 @@ on:
jobs: jobs:
publish: publish:
name: publish name: publish
runs-on: ubuntu-16.04 runs-on: ubuntu-latest
steps: steps:
- name: Checkout repository - name: Checkout repository
uses: actions/checkout@v2 uses: actions/checkout@v2
@ -41,5 +41,5 @@ jobs:
git config --global user.name "Github Action" git config --global user.name "Github Action"
rm Cargo.lock rm Cargo.lock
cargo workspaces rename ra_ap_%n cargo workspaces rename ra_ap_%n
sed -i 's/rust_analyzer/ra_ap_rust_analyzer/g' crates/rust-analyzer/**/*.rs find crates/rust-analyzer -type f -name '*.rs' -exec sed -i 's/rust_analyzer/ra_ap_rust_analyzer/g' {} +
cargo workspaces publish --yes --force '*' --exact --no-git-commit --allow-dirty --skip-published custom 0.0.$PATCH cargo workspaces publish --yes --force '*' --exact --no-git-commit --allow-dirty --skip-published custom 0.0.$PATCH