Skip to content

Commit 13610e4

Browse files
committed
CI: Fix refspec for git push
1 parent 073f482 commit 13610e4

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

.github/workflows/build.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -363,7 +363,7 @@ jobs:
363363

364364
mdbookold:
365365
name: build docs and mdbook for older releases
366-
needs: mergetostablebranch
366+
needs: pushtostablebranch
367367
runs-on: ubuntu-22.04
368368
steps:
369369
- name: Checkout
@@ -468,8 +468,8 @@ jobs:
468468
# Thus, no need to push changes
469469
#
470470
# This needs to run before book is built, as bookbuilding fetches from the branch
471-
mergetostablebranch:
472-
name: Merge branch into release/vX when pushing to master
471+
pushtostablebranch:
472+
name: Also push branch into release/vX when pushing to master
473473
runs-on: ubuntu-22.04
474474
needs:
475475
- ci-success
@@ -486,7 +486,7 @@ jobs:
486486

487487
- name: Push to stable release branch if master contains stable version
488488
if: ${{ env.versionmajor == env.STABLE_VERSION }}
489-
run: git push -u origin ${{ env.branch }}
489+
run: git push -u origin master:${{ env.branch }}
490490

491491
- name: Else case, master did not contain the stable version version
492492
if: ${{ env.versionmajor != env.STABLE_VERSION }}
@@ -500,7 +500,7 @@ jobs:
500500
name: deploy
501501
runs-on: ubuntu-22.04
502502
needs:
503-
- mergetostablebranch
503+
- pushtostablebranch
504504
- docs
505505
- mdbookold
506506
- mdbook

0 commit comments

Comments
 (0)