Commit af6ff95
Fix GitHub Actions coverage badge workflow git operations
Summary:
The coverage badge workflow was failing in GitHub Actions when the remote `badges` branch didn't exist. The flawed conditional logic would create an orphan branch but then fail on the subsequent checkout.
This fix uses an idempotent approach that always creates a fresh orphan branch and force-pushes to the remote, avoiding racy conditional checks and working reliably whether the remote branch exists or not.
Differential Revision: D909372541 parent ab550c9 commit af6ff95
1 file changed
+12
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
62 | | - | |
63 | | - | |
64 | | - | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
65 | 65 | | |
66 | 66 | | |
67 | 67 | | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
68 | 74 | | |
69 | 75 | | |
70 | 76 | | |
| |||
74 | 80 | | |
75 | 81 | | |
76 | 82 | | |
77 | | - | |
78 | | - | |
79 | | - | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
0 commit comments