Commit 7e2a371
authored
ci(refresh-catalog): fetch existing branch before force-with-lease (#15)
When attempt 1 of a scheduled run pushes the branch and a later attempt
re-runs the job, actions/checkout only fetches main. Without a
remote-tracking ref for the catalog/refresh-* branch, git push
--force-with-lease aborts with "stale info" and the workflow can never
succeed on retry. Explicitly fetch the branch (best-effort, since it may
not yet exist on first runs) so the lease has something to compare.1 parent 19cdc1f commit 7e2a371
1 file changed
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
| 42 | + | |
| 43 | + | |
42 | 44 | | |
43 | 45 | | |
44 | 46 | | |
| |||
0 commit comments