diff --git a/github-actions/release-prepare/pull-request.sh b/github-actions/release-prepare/pull-request.sh index 8442036..d2e042d 100755 --- a/github-actions/release-prepare/pull-request.sh +++ b/github-actions/release-prepare/pull-request.sh @@ -2,17 +2,21 @@ # get latest release tag +echo "Looking for last tag..." latest_release=$(git describe --tags --abbrev=0 "origin/${RELEASE_BRANCH}") # generate next patch release tag if [ -n "${latest_release}" ]; then + echo "Found tag: ${latest_release}" latest_release_bumped=$(echo "${latest_release}" | awk -F. -v OFS=. '{$NF++;print}') else + echo "No tag found, defaulting to v0.1.0" latest_release_bumped='v0.1.0' fi -# create or update PR + +# prepare PR text pr_title="Release: ${latest_release_bumped}" pr_body="$(cat <