From e39be38acf262bbcdf298577b64939704a8eb842 Mon Sep 17 00:00:00 2001 From: Denis Rouzaud Date: Mon, 19 Feb 2024 11:09:24 +0100 Subject: [PATCH] fix --- website/scripts/mkdocs_tx_commit.sh | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/website/scripts/mkdocs_tx_commit.sh b/website/scripts/mkdocs_tx_commit.sh index 44d801b4..9179edc7 100755 --- a/website/scripts/mkdocs_tx_commit.sh +++ b/website/scripts/mkdocs_tx_commit.sh @@ -1,16 +1,19 @@ #!/usr/bin/env bash +set -e + if [[ $(git diff --exit-code mkdocs.yml) ]]; then git config --global user.email "qgisninja@gmail.com" 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"