Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
Signed-off-by: Ivan Valdes <[email protected]>
  • Loading branch information
ivanvc committed Sep 25, 2024
1 parent 0c17d05 commit 409d62a
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions scripts/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -332,8 +332,17 @@ main() {

# Disable shellcheck SC2016, the single quoted syntax for sed is intentional.
# shellcheck disable=SC2016
local gh_repo
if [ "${REPOSITORY}" = pwd ]; then
gh_repo=$(git remote get-url origin)
else
gh_repo="${REPOSITORY}"
fi
gh_repo=$(echo "${gh_repo}" | sed 's/^[^@]\+@//' | sed 's/https\?:\/\///' | sed 's/\.git$//' | tr ':' '/')

maybe_run sed 's/${RELEASE_VERSION}/'"${RELEASE_VERSION}"'/' ./scripts/release_notes.tpl.txt | \
gh release create "${RELEASE_VERSION}" \
--repo "${gh_repo}" \
--draft \
--prerelease \
--title "${RELEASE_VERSION}" \
Expand Down

0 comments on commit 409d62a

Please sign in to comment.