fix: don't prepend https. I honestly don't know how it was working before
This commit is contained in:
@ -36,14 +36,14 @@ jobs:
|
|||||||
PR_RESPONSE=$(curl -s -X POST -H "Authorization: token $PAT" \
|
PR_RESPONSE=$(curl -s -X POST -H "Authorization: token $PAT" \
|
||||||
-H "Content-Type: application/json" \
|
-H "Content-Type: application/json" \
|
||||||
-d '{"title":"update","body":"automatic update","head":"update","base":"main"}' \
|
-d '{"title":"update","body":"automatic update","head":"update","base":"main"}' \
|
||||||
"https://$URL/api/v1/repos/$REPO_OWNER_SLASH_NAME/pulls")
|
"$URL/api/v1/repos/$REPO_OWNER_SLASH_NAME/pulls")
|
||||||
|
|
||||||
PR_NUMBER=$(echo "$PR_RESPONSE" | jq -r '.number')
|
PR_NUMBER=$(echo "$PR_RESPONSE" | jq -r '.number')
|
||||||
|
|
||||||
curl -s -X POST -H "Authorization: token $PAT" \
|
curl -s -X POST -H "Authorization: token $PAT" \
|
||||||
-H "Content-Type: application/json" \
|
-H "Content-Type: application/json" \
|
||||||
-d '{"Do":"merge","merge_when_checks_succeed":true,"delete_branch_after_merge":true}' \
|
-d '{"Do":"merge","merge_when_checks_succeed":true,"delete_branch_after_merge":true}' \
|
||||||
"https://$URL/api/v1/repos/$REPO_OWNER_SLASH_NAME/pulls/$PR_NUMBER/merge"
|
"$URL/api/v1/repos/$REPO_OWNER_SLASH_NAME/pulls/$PR_NUMBER/merge"
|
||||||
|
|
||||||
else
|
else
|
||||||
git push origin update --force
|
git push origin update --force
|
||||||
|
Reference in New Issue
Block a user