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 1806c83 commit f2c151b
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 30 deletions.
34 changes: 11 additions & 23 deletions .github/workflows/create-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -84,35 +84,23 @@ jobs:
needs: create-release-branch

steps:
- name: Check out code
- name: Check out code - major release
if: ${{ github.event.inputs.release-type == 'major' }}
uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Fetch full history if shallow
run: |
if [ -f .git/shallow ]; then
git fetch --unshallow
fi
- name: Clean working tree
run: |
git reset --hard HEAD
- name: Fetch and Checkout Release Branch (Major)
if: ${{ github.event.inputs.release-type == 'major' }}
run: |
git checkout ${{ needs.determine-next-versions.outputs.branch-major }}
ref: ${{ needs.determine-next-versions.outputs.branch-major }}

- name: Fetch and Checkout Release Branch (Minor)
- name: Check out code - minor release
if: ${{ github.event.inputs.release-type == 'minor' }}
run: |
git checkout ${{ needs.determine-next-versions.outputs.branch-minor }}
uses: actions/checkout@v3
with:
ref: ${{ needs.determine-next-versions.outputs.branch-minor }}

- name: Fetch and Checkout Release Branch (Patch)
- name: Check out code - patch release
if: ${{ github.event.inputs.release-type == 'patch' }}
run: |
git checkout ${{ needs.determine-next-versions.outputs.branch-patch }}
uses: actions/checkout@v3
with:
ref: ${{ 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 f2c151b

Please sign in to comment.