Skip to content

Commit ad53091

Browse files
vdusekclaude
andauthored
ci: Fix commit and push in regenerate models workflow (#702)
## Summary Fixes two bugs in the `manual_regenerate_models` workflow that caused the [manual run](https://github.com/apify/apify-client-python/actions/runs/24075156216/job/70221653926) to fail: - **Pre-commit hook blocked commit**: `git commit` triggered the type-check hook, which failed because regenerated models removed symbols (`ScheduleCreateActions`, `TaskOptions`) still imported by client code. Added `commit: --no-verify` to bypass hooks — the resulting PR will get proper CI checks anyway. - pre commit failures should be addressed manually - **Push failed for new branch**: `push: --force` ran `git push --force` without setting upstream tracking. Changed to `push: -u origin $BRANCH --force` so the new branch is correctly pushed. --------- Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent a6a6fde commit ad53091

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

.github/workflows/manual_regenerate_models.yaml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
# 1. Automatically via workflow_dispatch from the apify-docs CI pipeline (with docs_pr_number and docs_workflow_run_id).
55
# 2. Manually from the GitHub UI (without any inputs) to regenerate from the live published spec.
66

7-
name: Regenerate models from OpenAPI spec
7+
name: Regenerate models
88

99
on:
1010
workflow_dispatch:
@@ -86,14 +86,15 @@ jobs:
8686
8787
- name: Commit model changes
8888
id: commit
89-
uses: EndBug/add-and-commit@v9
89+
uses: EndBug/add-and-commit@v10
9090
with:
9191
add: src/apify_client/_models.py
9292
author_name: apify-service-account
9393
author_email: apify-service-account@users.noreply.github.com
9494
message: ${{ env.TITLE }}
9595
new_branch: ${{ env.BRANCH }}
96-
push: --force
96+
commit: --no-verify
97+
push: -u origin ${{ env.BRANCH }} --force
9798

9899
- name: Create or update PR
99100
if: steps.commit.outputs.committed == 'true'

0 commit comments

Comments
 (0)