mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-12-01 19:48:34 +00:00
release: fix PR detection for appveyor
This commit is contained in:
parent
3a3299bc61
commit
0debcf5bf9
@ -217,7 +217,9 @@ def build():
|
|||||||
|
|
||||||
|
|
||||||
def is_pr():
|
def is_pr():
|
||||||
if os.environ.get("TRAVIS_PULL_REQUEST") != "false":
|
if "TRAVIS_PULL_REQUEST" in os.environ:
|
||||||
|
if os.environ["TRAVIS_PULL_REQUEST"] == "false":
|
||||||
|
return False
|
||||||
return True
|
return True
|
||||||
elif os.environ.get("APPVEYOR_PULL_REQUEST_NUMBER"):
|
elif os.environ.get("APPVEYOR_PULL_REQUEST_NUMBER"):
|
||||||
return True
|
return True
|
||||||
|
Loading…
Reference in New Issue
Block a user