Skip to content

Commit

Permalink
CI: Create local repo awareness of branch ref
Browse files Browse the repository at this point in the history
  • Loading branch information
AfoHT authored and korken89 committed Nov 9, 2023
1 parent ea8b5b6 commit 413955f
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -484,7 +484,13 @@ jobs:

- name: Push to stable release branch if master contains stable version
if: ${{ env.versionmajor == env.STABLE_VERSION }}
run: git push -u origin master:${{ env.branch }}
run: |
# Get the full history of the branch leading up to current commit
git fetch --unshallow
# Make git aware of the release branch
git fetch -u origin ${{ env.branch }}
# Push the full history into the release branch
git push -u origin master:${{ env.branch }}
- name: Else case, master did not contain the stable version
if: ${{ env.versionmajor != env.STABLE_VERSION }}
Expand Down

0 comments on commit 413955f

Please sign in to comment.