mirror of
https://github.com/rtic-rs/rtic.git
synced 2024-11-23 20:22:51 +01:00
CI: Create local repo awareness of branch ref
This commit is contained in:
parent
ea8b5b6c33
commit
413955fb39
1 changed files with 7 additions and 1 deletions
8
.github/workflows/build.yml
vendored
8
.github/workflows/build.yml
vendored
|
@ -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 }}
|
||||
|
|
Loading…
Reference in a new issue