Skip to content

Commit

Permalink
swtich to bot user
Browse files Browse the repository at this point in the history
  • Loading branch information
3nids committed Feb 19, 2024
1 parent ef081f1 commit 9f87221
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/website.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
8 changes: 3 additions & 5 deletions website/scripts/mkdocs_tx_commit.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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"
Expand Down

0 comments on commit 9f87221

Please sign in to comment.