Skip to content

Commit 37ac332

Browse files
chore: update server version in readme without template (#81)
1 parent d195d86 commit 37ac332

File tree

2 files changed

+2
-174
lines changed

2 files changed

+2
-174
lines changed

.github/workflows/doc.yml

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -21,20 +21,15 @@ jobs:
2121

2222
- name: Update README with latest commit id and push to repo
2323
run: |
24-
npm install -g mustache
25-
touch data.json
26-
echo "{\"SERVER_VERSION\": \"${{ github.event.client_payload.version }}\"}" > data.json
24+
echo "SERVER_VERSION:" ${{ github.event.client_payload.version }}
2725
git config --global user.name "GitHub Actions"
2826
git config --global user.email "[email protected]"
2927
git status
3028
BRANCH_NAME=$(git branch | sed -n -e 's/^\* \(.*\)/\1/p')
3129
git pull --rebase origin main
3230
git checkout -b run-test-upstream-${{ github.event.client_payload.version }}
3331
git pull --rebase origin main
34-
cat data.json
35-
mustache data.json template.mustache > README_new.md
36-
mv README_new.md README.md
37-
rm -rf data.json
32+
sed -i "s/appium_flutter_server: [0-9]*\.[0-9]*\.[0-9]*/appium_flutter_server: ${{ github.event.client_payload.version }}/" README.md
3833
git add README.md
3934
git commit -m "Update README with latest commit ID - ${{ github.event.client_payload.version }}"
4035
git push -u origin run-test-upstream-${{ github.event.client_payload.version }}

template.mustache

Lines changed: 0 additions & 167 deletions
This file was deleted.

0 commit comments

Comments
 (0)