-
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
7 additions
and
4 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 |
---|---|---|
@@ -1,16 +1,19 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -e | ||
|
||
if [[ $(git diff --exit-code mkdocs.yml) ]]; then | ||
git config --global user.email "[email protected]" | ||
git config --global user.name "Geo Ninja" | ||
|
||
echo "detected changes in mkdocs.yml" | ||
if [[ ${GITHUB_EVENT} == "pull_request" ]]; then | ||
echo "mkdocs is not updated from a PR" | ||
# on PR push to the same branch | ||
gh pr checkout ${{ github.event.pull_request.number }} | ||
git add mkdocs.yml | ||
git commit -m "Update mkdocs.yml translation" | ||
git push | ||
# gh pr checkout ${{ github.event.pull_request.number }} | ||
# git add mkdocs.yml | ||
# git commit -m "Update mkdocs.yml translation" | ||
# git push | ||
else | ||
# on push create a pull request | ||
BRANCH="update-mkdocs-tx-$RANDOM" | ||
|