Skip to content

Supercharge your AI agents with data from the web and beyond. Building the library for superintelligence. 🔥

fix: delete stale remote branch before pushing to avoid non-fast-forward failures

Devin AIeec5db6bb2b1
diff --git a/.github/workflows/publish-elixir-sdk.yml b/.github/workflows/publish-elixir-sdk.yml
index 2b01f75e3..8ea97f827 100644
--- a/.github/workflows/publish-elixir-sdk.yml
+++ b/.github/workflows/publish-elixir-sdk.yml
@@ -65,6 +65,9 @@ jobs:
git config user.name "github-actions[bot]"
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
+ # Delete stale remote branch if it exists (no open PR at this point)
+ git push origin --delete "$BRANCH" 2>/dev/null || true
+
git checkout -b "$BRANCH"
git add apps/elixir-sdk/
git commit -m "chore(elixir-sdk): regenerate from OpenAPI spec (v${VERSION})"