File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change 1313 runs-on : ubuntu-latest
1414 defaults :
1515 run :
16- working-directory : docusaurus
16+ working-directory : . # Not docusaurus
1717
1818 steps :
1919 - name : Checkout repository
@@ -41,15 +41,17 @@ jobs:
4141
4242 - name : Commit changes to a new branch
4343 run : |
44+ cd ../ # ← move to repo root
4445 git config user.name "github-actions[bot]"
4546 git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
4647
4748 BRANCH_NAME="update-docs-site-$(date +%s)"
4849 echo "BRANCH_NAME=$BRANCH_NAME" >> $GITHUB_ENV
4950
5051 git checkout -b $BRANCH_NAME
51- git add ../ docs
52+ git add docs
5253
54+ # Check for staged changes before committing
5355 if git diff --cached --quiet; then
5456 echo "No changes to commit. Exiting workflow."
5557 echo "create_pr=false" >> $GITHUB_ENV
6668 with :
6769 token : ${{ secrets.GITHUB_TOKEN }}
6870 commit-message : Update Docusaurus site [skip ci]
69- branch : ${{ env.BRANCH_NAME }} # ✅ Correct branch here
71+ branch : ${{ env.BRANCH_NAME }}
7072 title : ' Update Docusaurus site'
7173 body : ' This PR updates the static documentation site.'
7274 base : main
You can’t perform that action at this time.
0 commit comments