Skip to content

Commit

Permalink
Update entrypoint.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
aviral-nayya authored May 22, 2023
1 parent de80306 commit 0b998a5
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ if [ -z "$GITHUB_TOKEN" ]; then
exit 1
fi

default_semvar_bump=${BUMP:-minor}
default_semvar_bump=${BUMP:-none}
with_v=${WITH_V:-true}

repo_fullname=$(jq -r ".repository.full_name" "$GITHUB_EVENT_PATH")
Expand Down Expand Up @@ -38,6 +38,11 @@ if [ "$tag_commit" == "$commit" && "$DRY_RUN" != 1 ]; then
exit 0
fi

if [ "$BUMP" == "none" ]; then
echo "Bump type is none, no increment required. Skipping..."
exit 0
fi

if [ "$tag" == "latest" ]; then
tag=$(git tag --sort=-creatordate | head -n 2 | tail -n 1)
fi
Expand Down

0 comments on commit 0b998a5

Please sign in to comment.