Skip to content

Commit

Permalink
Updated release.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Sarmaged committed Jul 2, 2024
1 parent 455cbea commit ab3c69f
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,18 +31,14 @@ jobs:
git config --global user.name 'github-actions'
git config --global user.email 'github-actions@github.com'
- name: List all tags
run: |
git fetch --tags
git tag --list
- name: Fetch all tags
run: git fetch --tags

- name: Extract version and previous tag
id: extract_info
run: |
VERSION=${GITHUB_REF#refs/tags/v}
PREVIOUS_TAG=$(git describe --tags $(git rev-list --tags --skip=1 --max-count=1))
echo "${VERSION}"
echo "${PREVIOUS_TAG#v}"
echo "VERSION=$VERSION" >> $GITHUB_ENV
echo "PREVIOUS_TAG=$PREVIOUS_TAG" >> $GITHUB_ENV
Expand All @@ -52,9 +48,6 @@ jobs:
IFS='.' read -r -a NEW_VERSION_PARTS <<< "${VERSION}"
IFS='.' read -r -a OLD_VERSION_PARTS <<< "${PREVIOUS_TAG#v}"
echo "New version parts: ${NEW_VERSION_PARTS[@]}"
echo "Old version parts: ${OLD_VERSION_PARTS[@]}"
if [ "${NEW_VERSION_PARTS[0]}" != "${OLD_VERSION_PARTS[0]}" ]; then
UPDATE_TYPE=major
elif [ "${NEW_VERSION_PARTS[1]}" != "${OLD_VERSION_PARTS[1]}" ]; then
Expand Down

0 comments on commit ab3c69f

Please sign in to comment.