Skip to content

Commit

Permalink
another updater
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexFrontegg committed Dec 10, 2024
1 parent d1be865 commit 18c59be
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/bump-version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,16 @@ jobs:
ref: ${{ github.event.pull_request.head.ref }}
repository: ${{ github.event.pull_request.head.repo.full_name }}

- name: Fetch tags from master
run: |
git fetch origin master --tags # Fetch tags from the master branch
LATEST_TAG=$(git describe --tags $(git rev-list --tags --max-count=1) master)
echo "LATEST_TAG=${LATEST_TAG}" >> $GITHUB_ENV
- name: Extract and Increment Version
id: increment_version
run: |
TAG=${GITHUB_REF##*/}
TAG=${LATEST_TAG}
# Strip the "v" prefix if it exists and split the version into components
VERSION=${TAG#v}
IFS='.' read -r MAJOR MINOR PATCH <<< "$VERSION"
Expand Down

0 comments on commit 18c59be

Please sign in to comment.