This commit is contained in:
@@ -182,8 +182,8 @@ jobs:
|
|||||||
cat response_errors.txt
|
cat response_errors.txt
|
||||||
echo "----"
|
echo "----"
|
||||||
|
|
||||||
if [ "$HTTP_STATUS" == "200" ]; then
|
if [ "$HTTP_STATUS" == "200" ] && [$(cat response_body.json | jq -r .state) == "open"]; then
|
||||||
echo ">> Pull Request has been found"
|
echo ">> Pull Request has been found open, will update"
|
||||||
PR_INDEX=$(cat response_body.json | jq -r .number)
|
PR_INDEX=$(cat response_body.json | jq -r .number)
|
||||||
echo "pull-request-exists=${PR_INDEX}" >> $GITEA_OUTPUT
|
echo "pull-request-exists=${PR_INDEX}" >> $GITEA_OUTPUT
|
||||||
echo "pull-request-index=true" >> $GITEA_OUTPUT
|
echo "pull-request-index=true" >> $GITEA_OUTPUT
|
||||||
|
|||||||
Reference in New Issue
Block a user