Skip to content
This repository was archived by the owner on Nov 2, 2021. It is now read-only.

Commit 0cdac69

Browse files
committed
do not copy Cargo.toml, fix username
1 parent e12f7b3 commit 0cdac69

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

‎.github/workflows/example-sync.yaml‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
- name: replace username
2424
run: |
2525
cd rust-gh-example
26-
sed -i 's#{\[username\]}#MyUsername#g' $(find . -type f -name '*.md' -o -name '*.yml' -o -name '*.toml')
26+
sed -i 's#{\[username\]}#rust-github#g' $(find . -type f -name '*.md' -o -name '*.yml' -o -name '*.toml')
2727
2828
- name: Checkout old example
2929
uses: actions/checkout@v2
@@ -32,14 +32,16 @@ jobs:
3232
path: old_example
3333
ssh-key: ${{secrets.GH_EXAMPLE_DEPLOY_SECRET }}
3434

35-
- name: move sources from old to new example
35+
- name: move sources and Cargo.toml from old to new example
3636
run: |
3737
echo "pwd:"
3838
pwd
3939
echo "ls -al:"
4040
ls -al
4141
rm rust-gh-example/src/main.rs
42+
rm rust-gh-example/Cargo.toml
4243
cp old_example/src/* rust-gh-example/src/
44+
cp old_example/Cargo.toml rust-gh-example/Cargo.toml
4345
4446
- name: update example
4547
run: |

0 commit comments

Comments
(0)