fix: fix: disinto release uses undefined PROJECT_REPO variable (#166)
This commit is contained in:
parent
c5311ce909
commit
eaff5c808b
1 changed files with 2 additions and 2 deletions
|
|
@ -2956,7 +2956,7 @@ This PR creates a vault item for the release of version ${version}.
|
|||
pr_response=$(curl -sf -X POST \
|
||||
-H "Authorization: token ${FORGE_TOKEN}" \
|
||||
-H "Content-Type: application/json" \
|
||||
"${FORGE_URL}/api/v1/repos/${PROJECT_REPO}/pulls" \
|
||||
"${FORGE_URL}/api/v1/repos/${FORGE_OPS_REPO}/pulls" \
|
||||
-d "{\"title\":\"${pr_title}\",\"head\":\"${branch_name}\",\"base\":\"main\",\"body\":\"$(echo "$pr_body" | sed ':a;N;$!ba;s/\n/\\n/g')\"}" 2>/dev/null) || {
|
||||
echo "Error: failed to create PR" >&2
|
||||
echo "Response: ${pr_response}" >&2
|
||||
|
|
@ -2966,7 +2966,7 @@ This PR creates a vault item for the release of version ${version}.
|
|||
local pr_number
|
||||
pr_number=$(echo "$pr_response" | jq -r '.number')
|
||||
|
||||
local pr_url="${FORGE_URL}/${PROJECT_REPO}/pulls/${pr_number}"
|
||||
local pr_url="${FORGE_URL}/${FORGE_OPS_REPO}/pulls/${pr_number}"
|
||||
|
||||
echo ""
|
||||
echo "Release PR created: ${pr_url}"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue