diff --git a/.github/workflows/sphinx.yml b/.github/workflows/sphinx.yml index eb05fff7..bf60fb4e 100644 --- a/.github/workflows/sphinx.yml +++ b/.github/workflows/sphinx.yml @@ -6,7 +6,6 @@ on: jobs: sphinx: runs-on: ubuntu-22.04 - if: ${{ github.event_name != 'pull_request' }} steps: - uses: actions/checkout@v4 - name: Set up Python 3.12 @@ -29,7 +28,7 @@ jobs: cd ../ - name: Commit documentation changes run: | - git clone https://github.com/petercorke/spatialmath-python.git --branch gh-pages --single-branch gh-pages + git clone https://github.com/${{ github.repository }}.git --branch gh-pages --single-branch gh-pages cp -r docs/build/html/* gh-pages/ cd gh-pages git config --local user.email "action@github.com" @@ -39,6 +38,7 @@ jobs: # The above command will fail if no changes were present, so we ignore # that. - name: Push changes + if: ${{ github.event_name != 'pull_request' }} uses: ad-m/github-push-action@master with: branch: gh-pages