Skip to content

Commit

Permalink
chore: update server version in readme without template (#81)
Browse files Browse the repository at this point in the history
  • Loading branch information
sudharsan-selvaraj authored Jul 26, 2024
1 parent d195d86 commit 37ac332
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 174 deletions.
9 changes: 2 additions & 7 deletions .github/workflows/doc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,20 +21,15 @@ jobs:

- name: Update README with latest commit id and push to repo
run: |
npm install -g mustache
touch data.json
echo "{\"SERVER_VERSION\": \"${{ github.event.client_payload.version }}\"}" > data.json
echo "SERVER_VERSION:" ${{ github.event.client_payload.version }}
git config --global user.name "GitHub Actions"
git config --global user.email "[email protected]"
git status
BRANCH_NAME=$(git branch | sed -n -e 's/^\* \(.*\)/\1/p')
git pull --rebase origin main
git checkout -b run-test-upstream-${{ github.event.client_payload.version }}
git pull --rebase origin main
cat data.json
mustache data.json template.mustache > README_new.md
mv README_new.md README.md
rm -rf data.json
sed -i "s/appium_flutter_server: [0-9]*\.[0-9]*\.[0-9]*/appium_flutter_server: ${{ github.event.client_payload.version }}/" README.md
git add README.md
git commit -m "Update README with latest commit ID - ${{ github.event.client_payload.version }}"
git push -u origin run-test-upstream-${{ github.event.client_payload.version }}
Expand Down
167 changes: 0 additions & 167 deletions template.mustache

This file was deleted.

0 comments on commit 37ac332

Please sign in to comment.