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 a6394d8 commit 56eaba2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/workflows/website.yml
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ jobs:
./scripts/mkdocs_tx.py -s fr update_config
./scripts/mkdocs_tx_commit.sh
env:
GITHUB_EVENT: ${{ github.event_name }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Build documentation
Expand Down
2 changes: 1 addition & 1 deletion website/scripts/mkdocs_tx_commit.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

if [[ $(git diff --exit-code mkdocs.yml) ]]; then
echo "detected changes in mkdocs.yml"
if [[ ${{ github.event_name }} == "pull_request" ]]; then
if [[ GITHUB_EVENT == "pull_request" ]]; then
# on PR push to the same branch
gh pr checkout ${{ github.event.pull_request.number }}
git add mkdocs.yml
Expand Down

0 comments on commit 56eaba2

Please sign in to comment.