Skip to content

Commit

Permalink
workflow updated
Browse files Browse the repository at this point in the history
  • Loading branch information
SinaSeylani committed Oct 21, 2024
1 parent 66269d3 commit 29a529d
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 10 deletions.
21 changes: 18 additions & 3 deletions .github/workflows/create-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -99,20 +99,35 @@ jobs:
run: |
git reset --hard HEAD
- name: Force fetch the target branch (Major)
if: ${{ github.event.inputs.release-type == 'major' }}
run: |
git fetch origin ${{ needs.determine-next-versions.outputs.branch-major }}:refs/remotes/origin/${{ needs.determine-next-versions.outputs.branch-major }}
- name: Force fetch the target branch (Minor)
if: ${{ github.event.inputs.release-type == 'minor' }}
run: |
git fetch origin ${{ needs.determine-next-versions.outputs.branch-minor }}:refs/remotes/origin/${{ needs.determine-next-versions.outputs.branch-minor }}
- name: Force fetch the target branch (Patch)
if: ${{ github.event.inputs.release-type == 'patch' }}
run: |
git fetch origin ${{ needs.determine-next-versions.outputs.branch-patch }}:refs/remotes/origin/${{ needs.determine-next-versions.outputs.branch-patch }}
- name: Switch to Release Branch (Major)
if: ${{ github.event.inputs.release-type == 'major' }}
run: |
git checkout ${{ needs.determine-next-versions.outputs.branch-major }}
git checkout -b ${{ needs.determine-next-versions.outputs.branch-major }} --track origin/${{ needs.determine-next-versions.outputs.branch-major }}
- name: Switch to Release Branch (Minor)
if: ${{ github.event.inputs.release-type == 'minor' }}
run: |
git checkout ${{ needs.determine-next-versions.outputs.branch-minor }}
git checkout -b ${{ needs.determine-next-versions.outputs.branch-minor }} --track origin/${{ needs.determine-next-versions.outputs.branch-minor }}
- name: Switch to Release Branch (Patch)
if: ${{ github.event.inputs.release-type == 'patch' }}
run: |
git checkout ${{ needs.determine-next-versions.outputs.branch-patch }}
git checkout -b ${{ needs.determine-next-versions.outputs.branch-patch }} --track origin/${{ needs.determine-next-versions.outputs.branch-patch }}
- name: Verify Current Branch
run: git branch --show-current
Expand Down

This file was deleted.

0 comments on commit 29a529d

Please sign in to comment.