Skip to content

Commit 12001ca

Browse files
committed
Fix docusaurus publishing
1 parent dd9daa9 commit 12001ca

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

.github/workflows/build-docusaurus.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,10 @@ jobs:
4343
run: |
4444
git config user.name "github-actions[bot]"
4545
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
46-
46+
4747
BRANCH_NAME="update-docs-site-$(date +%s)"
48+
echo "BRANCH_NAME=$BRANCH_NAME" >> $GITHUB_ENV # Save for later steps
49+
4850
git checkout -b $BRANCH_NAME
4951
git add ../docs
5052
git commit -m "Update Docusaurus site [skip ci]" || echo "No changes to commit"
@@ -55,8 +57,7 @@ jobs:
5557
with:
5658
token: ${{ secrets.GITHUB_TOKEN }}
5759
commit-message: Update Docusaurus site [skip ci]
58-
branch: ${{ github.ref_name }}
60+
branch: ${{ env.BRANCH_NAME }} # Use saved branch name
5961
title: 'Update Docusaurus site'
6062
body: 'This PR updates the static documentation site.'
6163
base: main
62-

0 commit comments

Comments
 (0)