Skip to content
This repository was archived by the owner on Mar 25, 2026. It is now read-only.

Update changelog for sdk-js v0.0.128 (#204) #4

Update changelog for sdk-js v0.0.128 (#204)

Update changelog for sdk-js v0.0.128 (#204) #4

Workflow file for this run

name: Sync Docs to Vector Store
on:
push:
branches:
- main
paths:
- 'content/**'
jobs:
sync:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Get changed and removed files
id: files
run: |
git fetch origin ${{ github.event.before }}
# Get changed files (relative to content directory)
CHANGED_FILES=$(git diff --name-only ${{ github.event.before }} ${{ github.sha }} -- 'content/**/*.mdx' | sed 's|^content/||')
REMOVED_FILES=$(git diff --name-only --diff-filter=D ${{ github.event.before }} ${{ github.sha }} -- 'content/**/*.mdx' | sed 's|^content/||')
echo "Changed files: $CHANGED_FILES"
echo "Removed files: $REMOVED_FILES"
# Build JSON payload with file contents
payload=$(jq -n \
--arg commit "${{ github.sha }}" \
--arg repo "${{ github.repository }}" \
--argjson changed "$(
if [ -n "$CHANGED_FILES" ]; then
for f in $CHANGED_FILES; do
if [ -f "content/$f" ]; then
jq -n \
--arg path "$f" \
--arg content "$(base64 -w0 < "content/$f")" \
'{path: $path, content: $content}'
fi
done | jq -s '.'
else
echo '[]'
fi
)" \
--argjson removed "$(
if [ -n "$REMOVED_FILES" ]; then
printf '%s\n' $REMOVED_FILES | jq -R -s -c 'split("\n") | map(select(length > 0))'
else
echo '[]'
fi
)" \
'{commit: $commit, repo: $repo, changed: $changed, removed: $removed}'
)
echo "payload<<EOF" >> $GITHUB_OUTPUT
echo "$payload" >> $GITHUB_OUTPUT
echo "EOF" >> $GITHUB_OUTPUT
- name: Trigger Agentuity Sync Agent
env:
AGENTUITY_TOKEN: ${{ secrets.AGENTUITY_TOKEN }}
run: |
echo "Sending payload to agent:"
echo '${{ steps.files.outputs.payload }}' | jq '.'
curl https://agentuity.ai/webhook/f61d5ce9d6ed85695cc992c55ccdc2a6 \
-X POST \
-H "Authorization: Bearer $AGENTUITY_TOKEN" \
-H "Content-Type: application/json" \
-d '${{ steps.files.outputs.payload }}'