Skip to content

Commit

Permalink
Trying test version
Browse files Browse the repository at this point in the history
  • Loading branch information
Matlavv committed Nov 20, 2024
1 parent 48c7950 commit db2e2e6
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,14 @@ jobs:
elif [[ "${{ github.event.head_commit.message }}" == *"minor"* ]]; then
minor=$((minor + 1))
patch=0
else
elif [[ "${{ github.event.head_commit.message }}" == *"patch"* ]]; then
patch=$((patch + 1))
else
branch_name=$(echo "${{ github.ref }}" | sed 's/refs\/heads\///')
new_version="0.0.1-${branch_name}"
echo "new_version=$new_version" >> $GITHUB_ENV
echo "new_version=$new_version" >> $GITHUB_OUTPUT
exit 0
fi
new_version="$major.$minor.$patch"
while git rev-parse "refs/tags/$new_version" >/dev/null 2>&1; do
Expand Down

0 comments on commit db2e2e6

Please sign in to comment.