6969 - 8
7070 default : ' 0'
7171 description : ' The device selected to run on'
72+ skip_run :
73+ required : true
74+ type : boolean
75+ default : true
76+ description : ' Skip the run of the workflow'
7277
7378concurrency :
7479 group : ${{ github.workflow }}-${{ github.event_name }}-${{ github.ref }}
@@ -77,6 +82,7 @@ concurrency:
7782jobs :
7883 prepare :
7984 name : Prepare
85+ if : ${{ github.event.inputs.skip_run == 'false' }}
8086 runs-on : ubuntu-latest
8187 env :
8288 REL_VERSION : " 1.21.0"
@@ -113,6 +119,7 @@ jobs:
113119 name : Build torch
114120 needs :
115121 - prepare
122+ if : ${{ github.event.inputs.skip_run == 'false' }}
116123 # if: ${{ needs.prepare.outputs.ref }}
117124 uses : ./.github/workflows/_build_torch.yml
118125 with :
@@ -126,7 +133,7 @@ jobs:
126133 needs :
127134 - prepare
128135 - build-torch
129- if : ${{ !cancelled() && (success() || needs.build-torch.result == 'skipped') }}
136+ if : ${{ !cancelled() && (success() || needs.build-torch.result == 'skipped') && github.event.inputs.skip_run == 'false' }}
130137 uses : ./.github/workflows/_gaudi_hpu_build_torch_hpu.yml
131138 with :
132139 runner : ${{ needs.prepare.outputs.runner }}
@@ -143,7 +150,8 @@ jobs:
143150 - build
144151 if : |
145152 !cancelled() && github.event_name != 'repository_dispatch' &&
146- (success() || (needs.build-torch.result == 'skipped' && needs.build.result == 'success'))
153+ (success() || (needs.build-torch.result == 'skipped' && needs.build.result == 'success')) &&
154+ github.event.inputs.skip_run == 'false'
147155 uses : ./.github/workflows/_gaudi_hpu_ut.yml
148156 with :
149157 ref : ${{ needs.prepare.outputs.ref }}
@@ -164,7 +172,8 @@ jobs:
164172 - test
165173 if : |
166174 !cancelled() && github.event_name != 'repository_dispatch' &&
167- (success() || (needs.build-torch.result == 'skipped' && needs.build.result == 'success'))
175+ (success() || (needs.build-torch.result == 'skipped' && needs.build.result == 'success')) &&
176+ github.event.inputs.skip_run == 'false'
168177 uses : ./.github/workflows/_gaudi_hpu_benchmark.yml
169178 with :
170179 ref : ${{ needs.prepare.outputs.ref }}
0 commit comments