Composio powers 1000+ toolkits, tool search, context management, authentication, and a sandboxed workbench to help you build AI agents that turn intent into action.
Mirrored from https://github.com/Camo67/composio.git
Synced Nov 22, 00:45 UTC
fix: fix bash heredoc syntax error in build-cli-binaries workflow
The indented PY heredoc delimiters weren't matched because <<'PY' requires an unindented terminator. Replace with python3 -c one-liners. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Rahul Tarak committed
Apr 1, 2026 at 00:51 UTC
fd97f77e7e5041adf278323c7ff19928e180c4c8
1 file changed
+27
-24
.github/workflows/build-cli-binaries.yml
+27
-24
@@ -65,11 +65,7 @@ jobs:
65
exit 0
66
fi
67
68
- encoded_beta_tag=$(python3 - <<'PY'
69
- import os, urllib.parse
70
- print(urllib.parse.quote(os.environ["BETA_TAG_INPUT"], safe=""))
71
- PY
72
- )
68
+ encoded_beta_tag=$(python3 -c 'import os, urllib.parse; print(urllib.parse.quote(os.environ["BETA_TAG_INPUT"], safe=""))')
69
70
release_json=$(curl -fsSL \
71
-H "Authorization: Bearer ${GITHUB_TOKEN}" \
@@ -94,11 +90,7 @@ jobs:
90
stable_status=$(curl -sS -o /tmp/stable-release.json -w "%{http_code}" \
91
-H "Authorization: Bearer ${GITHUB_TOKEN}" \
92
-H "Accept: application/vnd.github+json" \
97
- "https://api.github.com/repos/${REPOSITORY}/releases/tags/$(python3 - <<'PY'
98
- import os, urllib.parse
99
- print(urllib.parse.quote(os.environ["stable_tag"], safe=""))
100
- PY
101
- )")
93
+ "https://api.github.com/repos/${REPOSITORY}/releases/tags/$(python3 -c 'import os, urllib.parse; print(urllib.parse.quote(os.environ["stable_tag"], safe=""))')")
94
if [[ "$stable_status" == "200" ]]; then
95
echo "Stable release ${stable_tag} already exists"
96
exit 1
@@ -223,21 +215,32 @@ jobs:
215
cd skills && zip -r ../dist/binaries/composio-skill.zip composio-cli/
216
217
- name: Create GitHub Release
226
- uses: softprops/action-gh-release@v2
227
- with:
228
- tag_name: ${{ needs.prepare.outputs.release_tag }}
229
- name: ${{ needs.prepare.outputs.release_name }}
230
- files: |
231
- ts/packages/cli/dist/binaries/*.zip
232
- ts/packages/cli/dist/binaries/checksums.txt
233
- draft: false
234
- prerelease: ${{ needs.prepare.outputs.prerelease == 'true' }}
235
- generate_release_notes: true
236
- make_latest: ${{ needs.prepare.outputs.make_latest }}
237
- target_commitish: ${{ needs.prepare.outputs.checkout_ref }}
238
- overwrite_files: true
218
env:
240
- GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
219
+ GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
220
+ RELEASE_TAG: ${{ needs.prepare.outputs.release_tag }}
221
+ RELEASE_NAME: ${{ needs.prepare.outputs.release_name }}
222
+ PRERELEASE: ${{ needs.prepare.outputs.prerelease }}
223
+ MAKE_LATEST: ${{ needs.prepare.outputs.make_latest }}
224
+ CHECKOUT_REF: ${{ needs.prepare.outputs.checkout_ref }}
225
+ run: |
226
+ set -euo pipefail
227
+
228
+ flags=(
229
+ --title "$RELEASE_NAME"
230
+ --target "$CHECKOUT_REF"
231
+ --generate-notes
232
+ )
233
+
234
+ if [[ "$PRERELEASE" == "true" ]]; then
235
+ flags+=(--prerelease)
236
+ flags+=(--latest=false)
237
+ else
238
+ flags+=(--latest)
239
+ fi
240
+
241
+ gh release create "$RELEASE_TAG" "${flags[@]}" \
242
+ ts/packages/cli/dist/binaries/*.zip \
243
+ ts/packages/cli/dist/binaries/checksums.txt
244
245
test-installation:
246
name: Test Installation