Set a step output
This commit is contained in:
parent
55e7b1ec28
commit
5692e041c6
5
dist/src/create-pull-request.py
vendored
5
dist/src/create-pull-request.py
vendored
|
@ -127,10 +127,13 @@ def process_event(github_token, github_repository, repo, branch, base):
|
|||
print(str(e))
|
||||
sys.exit(1)
|
||||
|
||||
# Set the output variable
|
||||
# Set the output variables
|
||||
os.system(
|
||||
'echo ::set-env name=PULL_REQUEST_NUMBER::%d' %
|
||||
pull_request.number)
|
||||
os.system(
|
||||
'echo ::set-output name=pr_number::%d' %
|
||||
pull_request.number)
|
||||
|
||||
# Set labels, assignees and milestone
|
||||
if pull_request_labels is not None:
|
||||
|
|
|
@ -127,10 +127,13 @@ def process_event(github_token, github_repository, repo, branch, base):
|
|||
print(str(e))
|
||||
sys.exit(1)
|
||||
|
||||
# Set the output variable
|
||||
# Set the output variables
|
||||
os.system(
|
||||
'echo ::set-env name=PULL_REQUEST_NUMBER::%d' %
|
||||
pull_request.number)
|
||||
os.system(
|
||||
'echo ::set-output name=pr_number::%d' %
|
||||
pull_request.number)
|
||||
|
||||
# Set labels, assignees and milestone
|
||||
if pull_request_labels is not None:
|
||||
|
|
Loading…
Reference in a new issue