@devries-cameron20 / composio-1 / commits / 2eacb56bd
Fork 0

Composio powers 1000+ toolkits, tool search, context management, authentication, and a sandboxed workbench to help you build AI agents that turn intent into action.

ci(cli): post installer preview commands on PRs

jkomyno committed Aug 1, 2026 at 18:25 UTC 2eacb56bd225c9bcea1d223d76fd2bdf005e126e
1 file changed +42
.github/workflows/cli.install-e2e.yml
+42
@@ -167,3 +167,45 @@ jobs:
167 COMPOSIO_INSTALL_E2E_SHELL: ${{ matrix.shell }}
168 COMPOSIO_INSTALL_E2E_RELEASE_DIR: ${{ runner.temp }}/cli-install-fixture
169 run: pnpm test:e2e:install
170 +
171 + # The base installer resolves the CLI release at run time, so the checked-in
172 + # scripts on any branch are complete working installers. Once the hermetic
173 + # suite passes, hand reviewers copy-paste commands that exercise this PR's
174 + # installer logic against the latest published release.
175 + preview-comment:
176 + name: Post installer preview comment
177 + if: github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == github.repository
178 + needs: local-install
179 + runs-on: ubuntu-latest
180 + timeout-minutes: 5
181 + permissions:
182 + pull-requests: write
183 + steps:
184 + - name: Render preview comment
185 + env:
186 + RAW_BASE: https://raw.githubusercontent.com/${{ github.repository }}/refs/heads/${{ github.event.pull_request.head.ref }}
187 + run: |
188 + set -euo pipefail
189 + {
190 + echo "### Preview this PR's installer"
191 + echo ""
192 + echo "The hermetic install E2E suite passed for this commit. These commands run the PR's installer scripts against the **latest published CLI release** — they preview installer behavior, not unreleased binaries."
193 + echo ""
194 + echo '```sh'
195 + echo "curl -fsSL \"$RAW_BASE/install.sh\" | sh"
196 + echo '```'
197 + echo ""
198 + echo "Shell-specific setup routes (the override points the variant at this PR's base installer):"
199 + echo ""
200 + echo '```sh'
201 + for shell in bash zsh fish; do
202 + echo "curl -fsSL \"$RAW_BASE/install/$shell.sh\" | COMPOSIO_INSTALL_SCRIPT_URL=\"$RAW_BASE/install.sh\" sh"
203 + done
204 + echo '```'
205 + } > install-preview-comment.txt
206 +
207 + - name: Post installer preview comment
208 + uses: thollander/actions-comment-pull-request@24bffb9b452ba05a4f3f77933840a6a841d1b32b # v3.0.1
209 + with:
210 + file-path: install-preview-comment.txt
211 + comment-tag: cli-install-preview