diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 4eb5aa78d59c2715e77bc628abfe7f04108c6517..ac645d6c53e038a1e6b9f326e8a635cf9a4a0b0c 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -97,8 +97,6 @@ jobs: run: | git config --local user.email "admin@aurelio.ai" git config --local user.name "aurelio-bot" + git remote set-url origin https://aurelio-bot:${{ secrets.PAT }}@github.com/aurelio-labs/docs.git git add . - if ! git diff --quiet || ! git diff --staged --quiet; then - git commit -m "chore: update semantic router docs" - git push "https://${{ secrets.PAT }}@github.com/aurelio-labs/docs.git" HEAD:main - fi + git diff --quiet && git diff --staged --quiet || (git commit -m "chore: update semantic router docs" && git push)