Skip to content
This repository was archived by the owner on Feb 25, 2026. It is now read-only.

Commit 6873409

Browse files
committed
Update artifact handling in HuggingFace RC workflow for improved clarity and consistency
1 parent e0ce25b commit 6873409

1 file changed

Lines changed: 31 additions & 13 deletions

File tree

.github/workflows/hf-rc.yml

Lines changed: 31 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
runs-on: ubuntu-latest
2424
outputs:
2525
version: ${{ steps.resolve.outputs.result != '' && fromJSON(steps.resolve.outputs.result).version || '' }}
26-
artifact_map: ${{ steps.resolve.outputs.result != '' && toJSON(fromJSON(steps.resolve.outputs.result).artifact_map) || '{}' }}
26+
artifacts: ${{ steps.resolve.outputs.result != '' && toJSON(fromJSON(steps.resolve.outputs.result).artifacts) || '{}' }}
2727
steps:
2828
- name: Resolve metadata
2929
id: resolve
@@ -71,8 +71,8 @@ jobs:
7171
return;
7272
}
7373
74-
map[key] = artifact.name;
75-
core.info(`Resolved artifact for ${key}: ${artifact.name}`);
74+
map[key] = { id: artifact.id, name: artifact.name };
75+
core.info(`Resolved artifact for ${key}: ${artifact.name} (id ${artifact.id})`);
7676
}
7777
7878
if (!version) {
@@ -91,7 +91,7 @@ jobs:
9191
}
9292
9393
core.info(`Resolved base version: ${version}`);
94-
return { version, artifact_map: map };
94+
return { version, artifacts: map };
9595
9696
test-linux:
9797
name: Test Linux
@@ -119,8 +119,10 @@ jobs:
119119
- name: Download Linux runtime
120120
uses: actions/download-artifact@v4
121121
with:
122-
name: ${{ fromJSON(needs.prepare.outputs.artifact_map).linux }}
122+
name: ${{ fromJSON(needs.prepare.outputs.artifacts).linux.name }}
123+
repository: ${{ github.repository }}
123124
run-id: ${{ github.event.workflow_run.id }}
125+
github-token: ${{ secrets.GITHUB_TOKEN }}
124126
path: bridge_artifacts/linux
125127

126128
- name: Stage runtime binaries
@@ -199,8 +201,10 @@ jobs:
199201
- name: Download Windows runtime
200202
uses: actions/download-artifact@v4
201203
with:
202-
name: ${{ fromJSON(needs.prepare.outputs.artifact_map).windows }}
204+
name: ${{ fromJSON(needs.prepare.outputs.artifacts).windows.name }}
205+
repository: ${{ github.repository }}
203206
run-id: ${{ github.event.workflow_run.id }}
207+
github-token: ${{ secrets.GITHUB_TOKEN }}
204208
path: bridge_artifacts/windows
205209

206210
- name: Stage runtime binaries
@@ -278,8 +282,10 @@ jobs:
278282
- name: Download macOS runtime
279283
uses: actions/download-artifact@v4
280284
with:
281-
name: ${{ fromJSON(needs.prepare.outputs.artifact_map).mac_arm64 }}
285+
name: ${{ fromJSON(needs.prepare.outputs.artifacts).mac_arm64.name }}
286+
repository: ${{ github.repository }}
282287
run-id: ${{ github.event.workflow_run.id }}
288+
github-token: ${{ secrets.GITHUB_TOKEN }}
283289
path: bridge_artifacts/macos-arm64
284290

285291
- name: Stage runtime binaries
@@ -361,43 +367,55 @@ jobs:
361367
- name: Download Linux runtime
362368
uses: actions/download-artifact@v4
363369
with:
364-
name: ${{ fromJSON(needs.prepare.outputs.artifact_map).linux }}
370+
name: ${{ fromJSON(needs.prepare.outputs.artifacts).linux.name }}
371+
repository: ${{ github.repository }}
365372
run-id: ${{ github.event.workflow_run.id }}
373+
github-token: ${{ secrets.GITHUB_TOKEN }}
366374
path: bridge_artifacts/linux
367375

368376
- name: Download Windows runtime
369377
uses: actions/download-artifact@v4
370378
with:
371-
name: ${{ fromJSON(needs.prepare.outputs.artifact_map).windows }}
379+
name: ${{ fromJSON(needs.prepare.outputs.artifacts).windows.name }}
380+
repository: ${{ github.repository }}
372381
run-id: ${{ github.event.workflow_run.id }}
382+
github-token: ${{ secrets.GITHUB_TOKEN }}
373383
path: bridge_artifacts/windows
374384

375385
- name: Download macOS arm64 runtime
376386
uses: actions/download-artifact@v4
377387
with:
378-
name: ${{ fromJSON(needs.prepare.outputs.artifact_map).mac_arm64 }}
388+
name: ${{ fromJSON(needs.prepare.outputs.artifacts).mac_arm64.name }}
389+
repository: ${{ github.repository }}
379390
run-id: ${{ github.event.workflow_run.id }}
391+
github-token: ${{ secrets.GITHUB_TOKEN }}
380392
path: bridge_artifacts/macos-arm64
381393

382394
- name: Download macOS x64 runtime
383395
uses: actions/download-artifact@v4
384396
with:
385-
name: ${{ fromJSON(needs.prepare.outputs.artifact_map).mac_x64 }}
397+
name: ${{ fromJSON(needs.prepare.outputs.artifacts).mac_x64.name }}
398+
repository: ${{ github.repository }}
386399
run-id: ${{ github.event.workflow_run.id }}
400+
github-token: ${{ secrets.GITHUB_TOKEN }}
387401
path: bridge_artifacts/macos-x64
388402

389403
- name: Download Android runtime
390404
uses: actions/download-artifact@v4
391405
with:
392-
name: ${{ fromJSON(needs.prepare.outputs.artifact_map).android }}
406+
name: ${{ fromJSON(needs.prepare.outputs.artifacts).android.name }}
407+
repository: ${{ github.repository }}
393408
run-id: ${{ github.event.workflow_run.id }}
409+
github-token: ${{ secrets.GITHUB_TOKEN }}
394410
path: bridge_artifacts/android
395411

396412
- name: Download iOS runtime
397413
uses: actions/download-artifact@v4
398414
with:
399-
name: ${{ fromJSON(needs.prepare.outputs.artifact_map).ios }}
415+
name: ${{ fromJSON(needs.prepare.outputs.artifacts).ios.name }}
416+
repository: ${{ github.repository }}
400417
run-id: ${{ github.event.workflow_run.id }}
418+
github-token: ${{ secrets.GITHUB_TOKEN }}
401419
path: bridge_artifacts/ios
402420

403421
- name: Stage runtime binaries

0 commit comments

Comments
 (0)