From 7a7acd398184e8a23fff406803ae27e9acb323eb Mon Sep 17 00:00:00 2001
From: James Briggs <35938317+jamescalam@users.noreply.github.com>
Date: Fri, 14 Feb 2025 18:24:12 +0400
Subject: [PATCH] fix: tweak auth

---
 .github/workflows/docs.yml | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml
index 4eb5aa78..ac645d6c 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)
-- 
GitLab