Skip to content

Commit 4d0ce3f

Browse files
committed
fix: infer limit input correctly in workflow
1 parent 07d46d4 commit 4d0ce3f

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

.github/workflows/sdk-reference-sync.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,9 +74,11 @@ jobs:
7474
if [[ "$EVENT_NAME" == "workflow_dispatch" ]]; then
7575
SDK="$INPUT_SDK"
7676
VERSION="$INPUT_VERSION"
77+
LIMIT="${INPUT_LIMIT:-5}"
7778
elif [[ "$EVENT_NAME" == "repository_dispatch" ]]; then
7879
SDK="$PAYLOAD_SDK"
7980
VERSION="${PAYLOAD_VERSION:-all}"
81+
LIMIT="${PAYLOAD_LIMIT:-5}"
8082
fi
8183
8284
echo "sdk=${SDK:-all}" >> $GITHUB_OUTPUT
@@ -91,6 +93,7 @@ jobs:
9193
pnpm run generate \
9294
--sdk "$SDK_NAME" \
9395
--version "$SDK_VERSION"
96+
--limit "$LIMIT"
9497
9598
- name: Verify generated files
9699
run: |

0 commit comments

Comments
 (0)