Commit 7449861
committed
fix: repair regenerate-models workflow stale add glob and branch clash
The `add:` pathspec `_*_generated.py` stopped matching anything after the
generated files were renamed (PR #765 dropped the `_generated` suffix),
so the workflow has been silently producing no commits since 2026-04-29.
After PR #792 swapped to `apify/actions/signed-commit`, the pre-existing
local `git switch -c "$BRANCH"` step also clashed with the action's
`create-branch: true` flow (its `git fetch ... $BRANCH:refs/heads/$BRANCH`
refuses to overwrite a checked-out branch), leaving dangling empty
branches like `update-models-docs-pr-2546` / `-2548`.
This fixes the `add:` list to the actual filenames and skips the local
branch creation when the remote branch doesn't yet exist, letting
signed-commit handle that path; existing branches are still pre-checked-out
locally and `create-branch` is set to `false` for that case.1 parent 85b450b commit 7449861
1 file changed
Lines changed: 13 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
63 | 63 | | |
64 | 64 | | |
65 | 65 | | |
66 | | - | |
67 | | - | |
68 | | - | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
69 | 73 | | |
70 | 74 | | |
71 | | - | |
| 75 | + | |
72 | 76 | | |
| 77 | + | |
73 | 78 | | |
74 | | - | |
| 79 | + | |
75 | 80 | | |
76 | 81 | | |
77 | 82 | | |
| |||
109 | 114 | | |
110 | 115 | | |
111 | 116 | | |
112 | | - | |
| 117 | + | |
113 | 118 | | |
114 | 119 | | |
115 | | - | |
| 120 | + | |
116 | 121 | | |
117 | 122 | | |
118 | 123 | | |
| |||
0 commit comments