File tree 2 files changed +2
-174
lines changed
2 files changed +2
-174
lines changed Original file line number Diff line number Diff line change @@ -21,20 +21,15 @@ jobs:
21
21
22
22
- name : Update README with latest commit id and push to repo
23
23
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 }}
27
25
git config --global user.name "GitHub Actions"
28
26
git config --global user.email "[email protected] "
29
27
git status
30
28
BRANCH_NAME=$(git branch | sed -n -e 's/^\* \(.*\)/\1/p')
31
29
git pull --rebase origin main
32
30
git checkout -b run-test-upstream-${{ github.event.client_payload.version }}
33
31
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
38
33
git add README.md
39
34
git commit -m "Update README with latest commit ID - ${{ github.event.client_payload.version }}"
40
35
git push -u origin run-test-upstream-${{ github.event.client_payload.version }}
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments