@@ -87,16 +87,22 @@ jobs:
8787 - name : Set environment params
8888 id : set-env
8989 run : |
90- echo "runner=${{ github.event.ihputs .runner || 'linux-gaudi3' }}" >> $GITHUB_OUTPUT
91- echo "device=${{ github.event.ihputs .device || '0' }}" >> $GITHUB_OUTPUT
92- echo "image=${{ github.event.ihputs .image || 'vault.habana.ai/gaudi-docker/1.20.0/ubuntu24.04/habanalabs/pytorch-installer-2.6.0:latest' }}" >> $GITHUB_OUTPUT
90+ echo "runner=${{ github.event.inputs .runner || 'linux-gaudi3' }}" >> $GITHUB_OUTPUT
91+ echo "device=${{ github.event.inputs .device || '0' }}" >> $GITHUB_OUTPUT
92+ echo "image=${{ github.event.inputs .image || 'vault.habana.ai/gaudi-docker/1.20.0/ubuntu24.04/habanalabs/pytorch-installer-2.6.0:latest' }}" >> $GITHUB_OUTPUT
9393
9494 - name : List ref to the PyTorch branch
9595 id : list-ref
96- if : ${{ github.event_name == 'repository_dispatch' }}
9796 run : |
98- echo "ref=${{ github.event.client_payload.ref }}" >> $GITHUB_OUTPUT
99- echo "sha=${{ github.event.client_payload.sha }}" >> $GITHUB_OUTPUT
97+ if ${{ github.event_name == 'repository_dispatch' }}; then
98+ echo "ref=${{ github.event.client_payload.ref }}" >> $GITHUB_OUTPUT
99+ echo "sha=${{ github.event.client_payload.sha }}" >> $GITHUB_OUTPUT
100+ else
101+ ref=refs/heads/release/2.6
102+ echo "ref=$ref" >> $GITHUB_OUTPUT
103+ echo "sha=$(git ls-remote -h https://github.com/pytorch/pytorch.git $ref | awk '{print $1}')" >> $GITHUB_OUTPUT
104+ fi
105+
100106
101107 build-torch :
102108 name : Build torch
@@ -107,6 +113,7 @@ jobs:
107113 with :
108114 runner : ${{ needs.prepare.outputs.runner }}
109115 image : ${{ needs.prepare.outputs.image }}
116+ ref : ${{ needs.prepare.outputs.ref }}
110117
111118
112119 build :
@@ -133,6 +140,7 @@ jobs:
133140 (success() || (needs.build-torch.result == 'skipped' && needs.build.result == 'success'))
134141 uses : ./.github/workflows/_gaudi_hpu_ut.yml
135142 with :
143+ ref : ${{ needs.prepare.outputs.ref }}
136144 runner : ${{ needs.prepare.outputs.runner }}
137145 image : ${{ needs.prepare.outputs.image }}
138146 device : ${{ needs.prepare.outputs.device }}
@@ -152,6 +160,7 @@ jobs:
152160 (success() || (needs.build-torch.result == 'skipped' && needs.build.result == 'success'))
153161 uses : ./.github/workflows/_gaudi_hpu_benchmark.yml
154162 with :
163+ ref : ${{ needs.prepare.outputs.ref }}
155164 runner : ${{ needs.prepare.outputs.runner }}
156165 image : ${{ needs.prepare.outputs.image }}
157166 device : ${{ needs.prepare.outputs.device }}
0 commit comments