Skip to content

Commit 00153f1

Browse files
committed
CI: Set HF_TOKEN from runner env with secret fallback
Prioritize HF_TOKEN from runner environment variable if available, otherwise fall back to secrets.AMD_HF_TOKEN.
1 parent b674dc1 commit 00153f1

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

.github/workflows/atom-test.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -194,6 +194,10 @@ jobs:
194194
CONTAINER_NAME: atom_test_${{ strategy.job-index }}
195195

196196
steps:
197+
- name: Set HF_TOKEN
198+
if: matrix.run_on_pr == true || github.event_name != 'pull_request'
199+
run: echo "HF_TOKEN=${HF_TOKEN:-${{ secrets.AMD_HF_TOKEN }}}" >> $GITHUB_ENV
200+
197201
- name: Kill all Docker containers and clean up workspace
198202
if: (matrix.run_on_pr == true || github.event_name != 'pull_request') && matrix.runner == 'atom-mi355-8gpu.predownload'
199203
run: |

0 commit comments

Comments
 (0)