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 e39be38 commit 4805fb8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/website.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,6 @@ jobs:
./scripts/mkdocs_tx.py -s fr update_config
./scripts/mkdocs_tx_commit.sh
env:
GITHUB_REF: ${{ github.ref }}
GITHUB_EVENT: ${{ github.event_name }}
GH_TOKEN: ${{ secrets.GEONINJA_PAT }}

- name: Build documentation
Expand Down
4 changes: 2 additions & 2 deletions website/scripts/mkdocs_tx_commit.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ if [[ $(git diff --exit-code mkdocs.yml) ]]; then
git config --global user.name "Geo Ninja"

echo "detected changes in mkdocs.yml"
if [[ ${GITHUB_EVENT} == "pull_request" ]]; then
if [[ ${GITHUB_EVENT_NAME} == "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 }}
Expand All @@ -21,7 +21,7 @@ if [[ $(git diff --exit-code mkdocs.yml) ]]; then
git add mkdocs.yml
git commit -m "Update mkdocs.yml translation"
gh repo fork
git push -u geoninja ${BRANCH}
git push -u geo-ninja ${BRANCH}
gh pr create -B "${GITHUB_REF}" -H "${BRANCH}" --title 'Update mkdocs translations' --body 'run from mkdocs_tx'
fi
else
Expand Down

0 comments on commit 4805fb8

Please sign in to comment.