Commit 88c6bf7
committed
fix(release): checkout main branch before pushing version bump
The release workflow was failing because the release event checks out
the repository at the tag (detached HEAD state), not on the main branch.
When the workflow tried to 'git push origin main', it failed with
'error: src refspec main does not match any'.
This fix adds a step to explicitly checkout the main branch after the
initial checkout, ensuring we're on a proper branch before making and
pushing version bump commits.1 parent e6da671 commit 88c6bf7
1 file changed
+12
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
27 | 38 | | |
28 | 39 | | |
29 | 40 | | |
| |||
39 | 50 | | |
40 | 51 | | |
41 | 52 | | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
| 53 | + | |
48 | 54 | | |
49 | 55 | | |
50 | 56 | | |
| |||
0 commit comments