diff --git a/.github/workflows/website.yml b/.github/workflows/website.yml index 36277180..8c5f6e04 100644 --- a/.github/workflows/website.yml +++ b/.github/workflows/website.yml @@ -79,7 +79,7 @@ jobs: ./scripts/mkdocs_tx.py -s fr update_config ./scripts/mkdocs_tx_commit.sh env: - GH_TOKEN: ${{ secrets.GEONINJA_PAT }} + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} - name: Build documentation run: mkdocs build diff --git a/website/scripts/mkdocs_tx_commit.sh b/website/scripts/mkdocs_tx_commit.sh index 1c61274a..43961022 100755 --- a/website/scripts/mkdocs_tx_commit.sh +++ b/website/scripts/mkdocs_tx_commit.sh @@ -3,8 +3,8 @@ 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" + git config --global user.email "github-actions[bot]@users.noreply.github.com" + git config --global user.name "github-actions[bot]" echo "detected changes in mkdocs.yml" if [[ ${GITHUB_EVENT_NAME} == "pull_request" ]]; then @@ -20,9 +20,7 @@ if [[ $(git diff --exit-code mkdocs.yml) ]]; then git checkout -b ${BRANCH} git add mkdocs.yml git commit -m "Update mkdocs.yml translation" - gh repo fork - git push -u origin ${BRANCH} - gh pr create -B "${GITHUB_REF}" -H "${BRANCH}" --title 'Update mkdocs translations' --body 'run from mkdocs_tx' + gh pr create -B "${GITHUB_REF}" --title 'Update mkdocs translations' --body 'run from mkdocs_tx' fi else echo "no change mkdocs.yml"