Skip to content

Commit f3538fe

Browse files
author
Domakonda, Neha
authored
ZENAI-2061 Update checkout action with conditional ref
Signed-off-by: Domakonda, Neha <[email protected]>
1 parent 94e8db4 commit f3538fe

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

.github/workflows/zentorch_zendnnl_pr.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -156,11 +156,16 @@ jobs:
156156
echo "=============================================="
157157
echo ""
158158
shell: bash
159+
159160
- name: Checkout ZenDNN_PyTorch_Plugin
160161
uses: actions/checkout@v4
161162
with:
162-
fetch-depth: 0
163-
163+
ref: ${{
164+
github.event.action == 'zendnnl-pr' && 'zentorch_zendnnl' ||
165+
github.ref
166+
}}
167+
fetch-depth: 0
168+
164169
- name: Set WORKSPACE and PARENT_DIR to parent of repo
165170
run: |
166171
echo "PARENT_DIR=$(dirname "${GITHUB_WORKSPACE}")" >> $GITHUB_ENV

0 commit comments

Comments
 (0)