File tree Expand file tree Collapse file tree 2 files changed +16
-1
lines changed Expand file tree Collapse file tree 2 files changed +16
-1
lines changed Original file line number Diff line number Diff line change 41
41
required : false
42
42
type : string
43
43
default : ' '
44
+ wheel-nightly-policy :
45
+ description : Custom wheel upload policy for nightly
46
+ type : string
47
+ default : ' '
44
48
secrets :
45
49
PYPI_API_TOKEN :
46
50
description : An optional token to upload to pypi
84
88
if : ${{ inputs.trigger-event == 'schedule' || (inputs.trigger-event == 'push' && startsWith(github.event.ref, 'refs/heads/nightly')) }}
85
89
uses : aws-actions/configure-aws-credentials@50ac8dd1e1b10d09dac7b8727528b91bed831ac0 # v3.0.2
86
90
with :
87
- role-to-assume : arn:aws:iam::749337293305:role/gha_workflow_nightly_build_wheels
91
+ role-to-assume : arn:aws:iam::749337293305:role/${{ (inputs.wheel-nightly-policy != '' && inputs.wheel-nightly-policy) || ' gha_workflow_nightly_build_wheels'}}
88
92
aws-region : us-east-1
89
93
90
94
- name : Configure aws credentials (pytorch account)
Original file line number Diff line number Diff line change 96
96
description : Custom wheel upload path
97
97
required : false
98
98
type : string
99
+ wheel-nightly-policy :
100
+ description : Custom wheel upload policy for nightly
101
+ type : string
102
+ default : ' '
103
+ run-smoke-test :
104
+ description : Set to true if smoke test is needed
105
+ required : false
106
+ type : boolean
107
+ default : true
99
108
pip-install-torch-extra-args :
100
109
# NOTE: Why does this exist?
101
110
# Well setuptools / python packaging doesn't actually allow you to specify dependencies
@@ -278,6 +287,7 @@ jobs:
278
287
repository : ${{ inputs.repository }}
279
288
script : ${{ inputs.post-script }}
280
289
- name : Smoke Test
290
+ if : ${{ inputs.run-smoke-test }}
281
291
shell : bash -l {0}
282
292
env :
283
293
PACKAGE_NAME : ${{ inputs.package-name }}
@@ -334,6 +344,7 @@ jobs:
334
344
trigger-event : ${{ inputs.trigger-event }}
335
345
upload-to-pypi : ${{ inputs.upload-to-pypi }}
336
346
wheel-upload-path : ${{ inputs.wheel-upload-path }}
347
+ wheel-nightly-policy : ${{ inputs.wheel-nightly-policy }}
337
348
secrets :
338
349
PYPI_API_TOKEN : ${{ secrets.PYPI_API_TOKEN }}
339
350
You can’t perform that action at this time.
0 commit comments