Skip to content

Commit

Permalink
get latest tag
Browse files Browse the repository at this point in the history
  • Loading branch information
mteiting committed Sep 21, 2023
1 parent 3bb5e68 commit e65b476
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,14 @@ jobs:
- name: Build PlatformIO Project
run: platformio run

- uses: actions-ecosystem/action-get-latest-tag@v1
id: get-latest-tag

- name: get new release version
id: get_new_version
run: |
BUILD_DATE=$(date +'%Y.%m')
LATEST_TAG=$(git describe --tags `git rev-list --tags --max-count=1`)
LATEST_TAG=${{ steps.get-latest-tag.outputs.tag }}
MAJOR_MINOR_LATEST=$(awk -F. '{ OFS = "." } ; { print $1,$2 }' <<< $LATEST_TAG)
NEW_PATCH="0"
Expand Down

0 comments on commit e65b476

Please sign in to comment.