Skip to content

Commit acff308

Browse files
vdusekclaude
andcommitted
ci: trigger Python client model regeneration on OpenAPI spec changes
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 04d4945 commit acff308

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

.github/workflows/openapi-ci.yaml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,3 +114,32 @@ jobs:
114114
exit 1
115115
fi
116116
echo "✓ Bundles have valid sizes"
117+
118+
trigger-client-model-regeneration:
119+
name: Trigger Python client model regeneration
120+
runs-on: ubuntu-latest
121+
needs: [validate]
122+
if: github.event_name == 'pull_request'
123+
124+
steps:
125+
- uses: actions/checkout@v6
126+
127+
- name: Check if OpenAPI files changed
128+
uses: dorny/paths-filter@v3
129+
id: filter
130+
with:
131+
filters: |
132+
openapi:
133+
- 'apify-api/openapi/**'
134+
135+
- name: Trigger apify-client-python model regeneration
136+
if: steps.filter.outputs.openapi == 'true'
137+
env:
138+
GITHUB_TOKEN: ${{ secrets.APIFY_SERVICE_ACCOUNT_GITHUB_TOKEN }}
139+
PR_NUMBER: ${{ github.event.pull_request.number }}
140+
PR_BRANCH: ${{ github.head_ref }}
141+
run: |
142+
gh workflow run regenerate_models.yaml \
143+
--repo apify/apify-client-python \
144+
--field docs_pr_number="$PR_NUMBER" \
145+
--field docs_pr_branch="$PR_BRANCH"

0 commit comments

Comments
 (0)