-
-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: update server version in readme without template (#81)
- Loading branch information
1 parent
d195d86
commit 37ac332
Showing
2 changed files
with
2 additions
and
174 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 }} | ||
|
This file was deleted.
Oops, something went wrong.