Skip to content

Commit aac9c23

Browse files
committed
Update build
1 parent bef9baf commit aac9c23

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

.github/workflows/build-docusaurus.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
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
@@ -66,7 +68,7 @@ jobs:
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

0 commit comments

Comments
 (0)