Elffuss BraidHub

kikocis/continue public

Add Runloop blueprint CI integration for cn CLI (#7985)

* Add Runloop blueprint CI integration for cn CLI

* fix: reduce blueprint metadata
Changeset2db379f6084fb71077e4962225df770f36794c363bdaaf5c9b407d07c48fbfc6
AuthorNate Sesti <33237525+sestinj@users.noreply.github.com> · 2025-09-25 17:05 -07:00
CommitterGitHub <noreply@github.com> · 2025-09-25 17:05 -07:00
Parents4ab005c754da

Browse the files at this changeset

2 files changed

added .github/workflows/runloop-blueprint-template.json +8 −0
@@ -0,0 +1,8 @@
1+{
2+ "name": "cn",
3+ "system_setup_commands": [
4+ "npm i -g @continuedev/cli@latest",
5+ "sudo apt update",
6+ "sudo apt install -y ripgrep"
7+ ]
8+}
modified .github/workflows/stable-release.yml +37 −0
@@ -220,3 +220,40 @@
220220 # Mark the original beta release as superseded
221221 gh release edit "v${{ steps.find_beta.outputs.beta_version }}" \
222222 --notes "This beta version has been promoted to stable as v${{ steps.final_version.outputs.stable_version }}."
223+
224+ - name: Publish Blueprint to Runloop
225+ env:
226+ RUNLOOP_API_KEY: ${{ secrets.RUNLOOP_API_KEY }}
227+ run: |
228+ echo "Publishing blueprint 'cn' to Runloop API for version ${{ steps.final_version.outputs.stable_version }}"
229+
230+ # Use blueprint configuration from template file
231+ cp .github/workflows/runloop-blueprint-template.json blueprint.json
232+
233+ # Publish to Runloop API
234+ response=$(curl -X POST "https://api.runloop.ai/v1/blueprints" \
235+ -H "Authorization: Bearer $RUNLOOP_API_KEY" \
236+ -H "Content-Type: application/json" \
237+ -d @blueprint.json \
238+ -w "%{http_code}" \
239+ -s)
240+
241+ http_code=$(echo "$response" | tail -c 4)
242+ response_body=$(echo "$response" | head -c -4)
243+
244+ if [[ "$http_code" == "200" ]] || [[ "$http_code" == "201" ]]; then
245+ echo "✅ Successfully published blueprint to Runloop API"
246+ echo "Response: $response_body"
247+
248+ # Extract blueprint ID if available
249+ blueprint_id=$(echo "$response_body" | jq -r '.id // empty')
250+ if [[ -n "$blueprint_id" ]]; then
251+ echo "Blueprint ID: $blueprint_id"
252+ echo "blueprint_id=$blueprint_id" >> $GITHUB_OUTPUT
253+ fi
254+ else
255+ echo "❌ Failed to publish blueprint to Runloop API"
256+ echo "HTTP Code: $http_code"
257+ echo "Response: $response_body"
258+ exit 1
259+ fi