Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 12 additions & 1 deletion .github/workflows/gorgias-docs-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,20 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v4
with:
ref: aj/gorgias
fetch-depth: 0

- name: Ensure aj/gorgias branch exists on origin
run: |
git fetch origin main
if git ls-remote --heads origin aj/gorgias | grep -q .; then
git fetch origin aj/gorgias
git checkout aj/gorgias
else
echo "Remote branch aj/gorgias missing; creating from main and pushing."
git checkout -B aj/gorgias origin/main
git push -u origin aj/gorgias
fi

- name: Configure git
run: |
git config user.name "Gorgias Docs Bot"
Expand Down
Loading