From 52467591799c5f9852246ca0f4e68f5aba425fa8 Mon Sep 17 00:00:00 2001 From: Peter Corke Date: Sun, 16 Aug 2026 14:44:37 +1000 Subject: [PATCH 1/3] Fix sphinx workflow to clone gh-pages from rai-opensource, not petercorke The Commit documentation changes step still cloned the pre-migration petercorke/spatialmath-python repo, which has no gh-pages branch, failing every docs build push with "Remote branch gh-pages not found". --- .github/workflows/sphinx.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/sphinx.yml b/.github/workflows/sphinx.yml index eb05fff7..0e871faa 100644 --- a/.github/workflows/sphinx.yml +++ b/.github/workflows/sphinx.yml @@ -29,7 +29,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/rai-opensource/spatialmath-python.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" From 26826677e4daa20e5c23bccfe7d5894ba12c30ef Mon Sep 17 00:00:00 2001 From: Peter Corke Date: Sun, 16 Aug 2026 15:28:39 +1000 Subject: [PATCH 2/3] Self-resolve gh-pages clone target via github.repository Hardcoding rai-opensource/spatialmath-python fixes today's problem but carries the same fragility that broke this originally: an owner/repo baked into the workflow doesn't track future transfers or renames. ${{ github.repository }} always resolves to whatever repo the workflow is actually running in. --- .github/workflows/sphinx.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/sphinx.yml b/.github/workflows/sphinx.yml index 0e871faa..75e0a3dc 100644 --- a/.github/workflows/sphinx.yml +++ b/.github/workflows/sphinx.yml @@ -29,7 +29,7 @@ jobs: cd ../ - name: Commit documentation changes run: | - git clone https://github.com/rai-opensource/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" From 3a90d4f8b2f8654743fc83522240ba676e150ffb Mon Sep 17 00:00:00 2001 From: Tim Perkins Date: Thu, 27 Aug 2026 12:07:29 -0400 Subject: [PATCH 3/3] Adapt workflow for testing --- .github/workflows/sphinx.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/sphinx.yml b/.github/workflows/sphinx.yml index 75e0a3dc..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 @@ -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