File tree Expand file tree Collapse file tree 1 file changed +29
-0
lines changed
Expand file tree Collapse file tree 1 file changed +29
-0
lines changed Original file line number Diff line number Diff 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"
You can’t perform that action at this time.
0 commit comments