From 9fc490aa2b420c8cd5709cc6b5c741f802636b99 Mon Sep 17 00:00:00 2001 From: Alice Date: Wed, 7 Oct 2026 16:16:03 +0200 Subject: [PATCH] mofified for testing --- .github/workflows/build_documentation.yml | 22 +++++++++------------- 1 file changed, 9 insertions(+), 13 deletions(-) diff --git a/.github/workflows/build_documentation.yml b/.github/workflows/build_documentation.yml index 38aa1e7e0..704032428 100644 --- a/.github/workflows/build_documentation.yml +++ b/.github/workflows/build_documentation.yml @@ -78,7 +78,7 @@ jobs: # Update main index if this is a release # index.html could be lfs - name: Update version index - if: (github.event_name == 'push' && github.ref == 'refs/heads/main') + #if: (github.event_name == 'push' && github.ref == 'refs/heads/main') run: | python docs/main_index/render_main_index.py \ --version "${{ steps.version.outputs.version }}" \ @@ -86,20 +86,16 @@ jobs: git config user.name "github-actions" git config user.email "github-actions@github.com" - git add docs/main_index/versions.yaml - git add docs/main_index/index.html - - git commit -m "docs: update versions [skip ci]" - git push origin HEAD:main + git add docs/main_index/versions.yaml docs/main_index/index.html + git commit -m "Update version index for" [[skip ci]] + git push origin HEAD:${{ github.ref_name }} # If push happened on main, also sync same file changes to developer - if [ "${SOURCE_BRANCH}" = "main" ]; then - MAIN_COMMIT="$(git rev-parse HEAD)" - git fetch origin developer - git switch -c sync-to-developer origin/developer - git cherry-pick "${MAIN_COMMIT}" - git push origin HEAD:developer - fi + git fetch origin developer + git switch -c sync-to-developer origin/developer + git cherry-pick "${MAIN_COMMIT}" + git push origin HEAD:developer + - name: Checkout gh-pages uses: actions/checkout@v6