Skip to content

Commit

Permalink
Update main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
saranagaoka authored Dec 7, 2023
1 parent d6c278e commit 006673a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,9 @@ jobs:
fi
NEW_VERSION="${VERSION_PARTS[0]}.${VERSION_PARTS[1]}.${VERSION_PARTS[2]}"
NEW_TAG="$VERSION_PREFIX$NEW_VERSION"
while git rev-parse "$NEW_TAG" >/dev/null 2>&1; do
while git rev-parse "$NEW_TAG" >/dev/null 2>&1
do
echo "$NEW_TAG already exists"
VERSION_PARTS[2]=$((VERSION_PARTS[2] + 1))
NEW_VERSION="${VERSION_PARTS[0]}.${VERSION_PARTS[1]}.${VERSION_PARTS[2]}"
NEW_TAG="$VERSION_PREFIX$NEW_VERSION"
Expand All @@ -52,7 +54,7 @@ jobs:
git tag $NEW_TAG || (echo "Failed to create tag" && exit 1)
git push origin $NEW_TAG || (echo "Failed to push tag" && exit 1)
echo "::set-output name=TAG_NAME::$NEW_TAG"
- name: Create Release
id: create_release
uses: actions/create-release@v1
Expand Down

0 comments on commit 006673a

Please sign in to comment.