diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 02606b3881757066c23ef4c4b058a499960aee8e..a19f1b827c006338dc8a89a10a6d8e4f3d8d2e67 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -39,6 +39,7 @@ jobs: with: repository: aurelio-labs/docs path: temp-docs + ref: main token: ${{ secrets.PAT }} - name: Copy and rename docs @@ -91,10 +92,16 @@ jobs: .pages) |= ($pages | fromjson) ' temp-docs/docs.json > temp-docs/docs.json.tmp && mv temp-docs/docs.json.tmp temp-docs/docs.json - - name: Commit and push changes + - name: Configure git + run: | + git config --local user.email "admin@aurelio.ai" + git config --local user.name "aurelio-bot" + + - name: Commit changes working-directory: temp-docs run: | - git config --local user.email "github-actions[bot]@users.noreply.github.com" - git config --local user.name "github-actions[bot]" git add . - git diff --quiet && git diff --staged --quiet || (git commit -m "Update Semantic Router documentation" && git push) + git diff --quiet && git diff --staged --quiet || (git commit -m "chore: update semantic router docs" && git push) + + - name: Push changes + run: git push origin main