Skip to content

Commit

Permalink
Wrap in strings
Browse files Browse the repository at this point in the history
  • Loading branch information
CEKlopfenstein committed May 18, 2024
1 parent 30d22f7 commit 3b7d95f
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,15 @@ jobs:
id: version
run: |
YEAR=$(date +%Y)
LAST_VERSION_TAG=$(git tag -l --sort=-creatordate|grep -v 'pre'|head -n 1)
git status
LAST_MAJOR=$(echo $LAST_VERSION_TAG|sed -E 's/^[^\.]+\.//g;s/\..+//g')
MAJOR=$(($LAST_MAJOR+1))
MINOR=$(git log --oneline HEAD...$LAST_VERSION_TAG|wc -l)
echo "Year: "$YEAR
LAST_VERSION_TAG="$(git tag -l --sort=-creatordate|grep -v 'pre'|head -n 1)"
echo "Last Version: "$LAST_VERSION_TAG
LAST_MAJOR="$(echo $LAST_VERSION_TAG|sed -E 's/^[^\.]+\.//g;s/\..+//g')"
echo "Last Major: "$LAST_MAJOR
MAJOR="$(($LAST_MAJOR+1))"
echo "Major: "$MAJOR
MINOR="$(git log --oneline HEAD...$LAST_VERSION_TAG|wc -l)""
echo "Minor: "$MINOR
echo $YEAR.$MAJOR.$MINOR-pre
echo "TAG_NAME=$YEAR.$MAJOR.$MINOR-pre" >> $GITHUB_OUTPUT
- name: Release
Expand Down

0 comments on commit 3b7d95f

Please sign in to comment.