Skip to content

Commit

Permalink
delete debug, change trigger
Browse files Browse the repository at this point in the history
  • Loading branch information
artem-artemkin committed Dec 27, 2023
1 parent 38037e8 commit df6dd0a
Showing 1 changed file with 2 additions and 12 deletions.
14 changes: 2 additions & 12 deletions .github/workflows/create-tag.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ name: CI

on:
push:
paths-ignore:
- "src/GeoLite2-City.mmdb"
tags-ignore:
- "**"

workflow_dispatch:

Expand All @@ -19,26 +19,16 @@ jobs:
git fetch --tags origin
revlist="$(git rev-list --tags --max-count=1)"
echo "$revlist"
if [ -z "$revlist" ]; then
latestVersion="1.0.0"
else
latestVersion="$(git describe --tags "$revlist")"
fi
echo "$latestVersion"
latestVersionPrefix="$(awk -F'.' '{ $NF=""; print }' <<< "$latestVersion" | tr " " ".")"
echo "$latestVersionPrefix"
latestMinorVersion="$(sed "s/$latestVersionPrefix//g" <<< "$latestVersion")"
echo "$latestMinorVersion"
newMinorVersion=$(( $latestMinorVersion + 1 ))
echo "$newMinorVersion"
newVersion="$latestVersionPrefix$newMinorVersion"
echo "$newVersion"
git tag "$newVersion"
git push origin "$newVersion" || exit 1

0 comments on commit df6dd0a

Please sign in to comment.