Skip to content

Commit

Permalink
Fix indention
Browse files Browse the repository at this point in the history
  • Loading branch information
davidvanleeuwen committed Feb 26, 2024
1 parent b362c97 commit 67174c5
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions .github/workflows/release_server.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,19 +37,19 @@ jobs:
run: git fetch --depth=1 origin +refs/tags/*:refs/tags/*

- name: Determine new version tag
id: versioning
run: |
LATEST_TAG="server-v0.1.8"
if [[ "$LATEST_TAG" == "" ]]; then
NEW_TAG="server-v0.1.0"
else
VERSION_NUM=$(echo "$LATEST_TAG" | sed 's/server-v//')
IFS='.' read -r MAJOR MINOR PATCH <<< "$VERSION_NUM"
((PATCH++))
NEW_TAG="server-v${MAJOR}.${MINOR}.${PATCH}"
fi
echo "New tag: $NEW_TAG"
echo "NEW_TAG=$NEW_TAG" >> $GITHUB_ENV
id: versioning
run: |
LATEST_TAG=$(git tag -l "server-v*" --sort=-v:refname | head -n 1)
if [[ "$LATEST_TAG" == "" ]]; then
NEW_TAG="server-v0.1.0"
else
VERSION_NUM=$(echo "$LATEST_TAG" | sed 's/server-v//')
IFS='.' read -r MAJOR MINOR PATCH <<< "$VERSION_NUM"
((PATCH++))
NEW_TAG="server-v${MAJOR}.${MINOR}.${PATCH}"
fi
echo "New tag: $NEW_TAG"
echo "NEW_TAG=$NEW_TAG" >> $GITHUB_ENV
- name: 🎙 Discord notification 2/3
env:
Expand Down

0 comments on commit 67174c5

Please sign in to comment.