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 1, 2024
1 parent cd3e5f9 commit b384d9b
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,18 @@ jobs:
git config --global user.name 'github-actions'
git config --global user.email 'github-actions@github.com'
- name: List all tags
run: |
echo "Listing all tags:"
git tag --list
- 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 $GITHUB_SHA --skip=1 --max-count=1))
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 Down

0 comments on commit b384d9b

Please sign in to comment.