@@ -62,10 +62,10 @@ jobs:
6262 # Fetch existing documentation versions from gh-pages
6363 mkdir -p existing_versions
6464 git fetch origin gh-pages --depth=1
65- git checkout origin/gh-pages -- docs/ versions || true
65+ git checkout origin/gh-pages -- versions || true
6666
6767 # List existing tags and built versions
68- EXISTING_VERSIONS=$(ls docs/ versions | tr '\n' ' ')
68+ EXISTING_VERSIONS=$(ls versions | tr '\n' ' ')
6969 ALL_TAGS=$(git tag --list "v*" | tr '\n' ' ')
7070
7171 # Find missing tags
@@ -119,7 +119,7 @@ jobs:
119119 run : |
120120 # Define path to the updated _static directory
121121 UPDATED_STATIC_DIR=docs/source/_static
122- TARGET_STATIC_DIRS=$(find docs/ versions/ -type d -name "_static")
122+ TARGET_STATIC_DIRS=$(find versions/ -type d -name "_static")
123123
124124 # Copy updated _static to all versions
125125 for DIR in $TARGET_STATIC_DIRS; do
@@ -129,8 +129,9 @@ jobs:
129129
130130 - name : Commit and push changes
131131 run : |
132- git config user.name "github-actions"
133- git config user.email "[email protected] " 134132 git add .
135133 git commit -m "Update _static files in all documentation versions" || echo "No changes to commit"
136134 git push
135+ with :
136+ github_token : ${{ github.token }}
137+
0 commit comments