Skip to content

Commit

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

0 comments on commit d56f108

Please sign in to comment.