File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -15,21 +15,13 @@ jobs:
1515 steps :
1616 - uses : actions/checkout@v4
1717
18- - name : Download OpenAPI spec and diff from source
19- env :
20- GH_TOKEN : ${{ secrets.SDK_SYNC_PAT }}
18+ - name : Download OpenAPI spec
2119 run : |
22- # Download the diff payload and openapi.json from the triggering workflow
23- RUN_URL="${{ github.event.client_payload.diff_url }}"
24- RUN_ID=$(echo "$RUN_URL" | grep -oP '\d+$')
25-
26- gh run download "$RUN_ID" \
27- --repo blindpaylabs/blindpay-v2 \
28- --name sdk-diff-payload \
29- --dir /tmp/api-sync
20+ mkdir -p /tmp/api-sync
21+ curl -sSfL "${{ github.event.client_payload.openapi_url }}" -o /tmp/api-sync/openapi.json
3022
31- echo "Downloaded diff payload: "
32- cat /tmp/api-sync/sdk-diff-payload .json | head -100
23+ echo "Changed paths: ${{ toJson(github.event.client_payload.changed_paths) }} "
24+ echo '${{ toJson(github.event.client_payload.changed_paths) }}' > /tmp/api-sync/changed_paths .json
3325
3426 - name : Check for existing api-sync PR
3527 id : check-pr
6355 prompt : |
6456 You are updating this SDK to match API changes. Read CLAUDE.md for codebase standards.
6557
66- The OpenAPI diff is at /tmp/api-sync/sdk-diff-payload .json
58+ The changed API paths are listed in /tmp/api-sync/changed_paths .json
6759 The full current OpenAPI spec is at /tmp/api-sync/openapi.json
6860
6961 Instructions:
You can’t perform that action at this time.
0 commit comments