Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
3nids committed Feb 19, 2024
1 parent 9c059e0 commit e39be38
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions website/scripts/mkdocs_tx_commit.sh
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"
Expand Down

0 comments on commit e39be38

Please sign in to comment.