File tree Expand file tree Collapse file tree 3 files changed +29
-1
lines changed
Expand file tree Collapse file tree 3 files changed +29
-1
lines changed Original file line number Diff line number Diff line change @@ -120,3 +120,30 @@ jobs:
120120 exit 1
121121 fi
122122 echo "✓ Bundles have valid sizes"
123+
124+ trigger-client-model-regeneration :
125+ name : Trigger Python client model regeneration
126+ runs-on : ubuntu-latest
127+ needs : [validate]
128+ if : github.event_name == 'pull_request'
129+
130+ steps :
131+ - uses : actions/checkout@v6
132+
133+ - name : Check if OpenAPI files changed
134+ uses : dorny/paths-filter@v3
135+ id : filter
136+ with :
137+ filters : |
138+ openapi:
139+ - 'apify-api/openapi/**'
140+
141+ - name : Trigger apify-client-python model regeneration
142+ if : steps.filter.outputs.openapi == 'true'
143+ run : |
144+ gh workflow run regenerate_models.yaml \
145+ --repo apify/apify-client-python \
146+ --field docs_pr_number=${{ github.event.pull_request.number }} \
147+ --field docs_pr_branch=${{ github.head_ref }}
148+ env :
149+ GITHUB_TOKEN : ${{ secrets.APIFY_SERVICE_ACCOUNT_GITHUB_TOKEN }}
Original file line number Diff line number Diff line change @@ -30,3 +30,4 @@ sources/academy/**/exercises/storage
3030sources /academy /** /exercises /node_modules
3131sources /academy /** /exercises /package * .json
3232sources /academy /** /exercises /dataset.json
33+ config.bat
You can’t perform that action at this time.
0 commit comments