Skip to content

Commit

Permalink
Update build_and_release.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Degamisu authored Jan 21, 2024
1 parent 34a19f3 commit 3b67992
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/build_and_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,16 @@ jobs:
sudo apt-get update
sudo apt-get install -y libncurses5-dev
pip install -r requirements.txt
- name: Get latest release tag
id: get_latest_tag
run: echo "::set-output name=tag::$(git describe --tags $(git rev-list --tags --max-count=1))"
run: |
latest_tag=$(git tag -l | sort -V | tail -n 1)
if [ -z "$latest_tag" ]; then
echo "::set-output name=tag::v1.0.2" # Set a default tag if no tags are found
else
echo "::set-output name=tag::$latest_tag"
fi
- name: Increment version
id: increment_version
Expand Down

0 comments on commit 3b67992

Please sign in to comment.