|
23 | 23 | runs-on: ubuntu-latest |
24 | 24 | outputs: |
25 | 25 | 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) || '{}' }} |
27 | 27 | steps: |
28 | 28 | - name: Resolve metadata |
29 | 29 | id: resolve |
|
71 | 71 | return; |
72 | 72 | } |
73 | 73 |
|
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})`); |
76 | 76 | } |
77 | 77 |
|
78 | 78 | if (!version) { |
|
91 | 91 | } |
92 | 92 |
|
93 | 93 | core.info(`Resolved base version: ${version}`); |
94 | | - return { version, artifact_map: map }; |
| 94 | + return { version, artifacts: map }; |
95 | 95 |
|
96 | 96 | test-linux: |
97 | 97 | name: Test Linux |
@@ -119,8 +119,10 @@ jobs: |
119 | 119 | - name: Download Linux runtime |
120 | 120 | uses: actions/download-artifact@v4 |
121 | 121 | with: |
122 | | - name: ${{ fromJSON(needs.prepare.outputs.artifact_map).linux }} |
| 122 | + name: ${{ fromJSON(needs.prepare.outputs.artifacts).linux.name }} |
| 123 | + repository: ${{ github.repository }} |
123 | 124 | run-id: ${{ github.event.workflow_run.id }} |
| 125 | + github-token: ${{ secrets.GITHUB_TOKEN }} |
124 | 126 | path: bridge_artifacts/linux |
125 | 127 |
|
126 | 128 | - name: Stage runtime binaries |
@@ -199,8 +201,10 @@ jobs: |
199 | 201 | - name: Download Windows runtime |
200 | 202 | uses: actions/download-artifact@v4 |
201 | 203 | with: |
202 | | - name: ${{ fromJSON(needs.prepare.outputs.artifact_map).windows }} |
| 204 | + name: ${{ fromJSON(needs.prepare.outputs.artifacts).windows.name }} |
| 205 | + repository: ${{ github.repository }} |
203 | 206 | run-id: ${{ github.event.workflow_run.id }} |
| 207 | + github-token: ${{ secrets.GITHUB_TOKEN }} |
204 | 208 | path: bridge_artifacts/windows |
205 | 209 |
|
206 | 210 | - name: Stage runtime binaries |
@@ -278,8 +282,10 @@ jobs: |
278 | 282 | - name: Download macOS runtime |
279 | 283 | uses: actions/download-artifact@v4 |
280 | 284 | 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 }} |
282 | 287 | run-id: ${{ github.event.workflow_run.id }} |
| 288 | + github-token: ${{ secrets.GITHUB_TOKEN }} |
283 | 289 | path: bridge_artifacts/macos-arm64 |
284 | 290 |
|
285 | 291 | - name: Stage runtime binaries |
@@ -361,43 +367,55 @@ jobs: |
361 | 367 | - name: Download Linux runtime |
362 | 368 | uses: actions/download-artifact@v4 |
363 | 369 | with: |
364 | | - name: ${{ fromJSON(needs.prepare.outputs.artifact_map).linux }} |
| 370 | + name: ${{ fromJSON(needs.prepare.outputs.artifacts).linux.name }} |
| 371 | + repository: ${{ github.repository }} |
365 | 372 | run-id: ${{ github.event.workflow_run.id }} |
| 373 | + github-token: ${{ secrets.GITHUB_TOKEN }} |
366 | 374 | path: bridge_artifacts/linux |
367 | 375 |
|
368 | 376 | - name: Download Windows runtime |
369 | 377 | uses: actions/download-artifact@v4 |
370 | 378 | with: |
371 | | - name: ${{ fromJSON(needs.prepare.outputs.artifact_map).windows }} |
| 379 | + name: ${{ fromJSON(needs.prepare.outputs.artifacts).windows.name }} |
| 380 | + repository: ${{ github.repository }} |
372 | 381 | run-id: ${{ github.event.workflow_run.id }} |
| 382 | + github-token: ${{ secrets.GITHUB_TOKEN }} |
373 | 383 | path: bridge_artifacts/windows |
374 | 384 |
|
375 | 385 | - name: Download macOS arm64 runtime |
376 | 386 | uses: actions/download-artifact@v4 |
377 | 387 | 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 }} |
379 | 390 | run-id: ${{ github.event.workflow_run.id }} |
| 391 | + github-token: ${{ secrets.GITHUB_TOKEN }} |
380 | 392 | path: bridge_artifacts/macos-arm64 |
381 | 393 |
|
382 | 394 | - name: Download macOS x64 runtime |
383 | 395 | uses: actions/download-artifact@v4 |
384 | 396 | 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 }} |
386 | 399 | run-id: ${{ github.event.workflow_run.id }} |
| 400 | + github-token: ${{ secrets.GITHUB_TOKEN }} |
387 | 401 | path: bridge_artifacts/macos-x64 |
388 | 402 |
|
389 | 403 | - name: Download Android runtime |
390 | 404 | uses: actions/download-artifact@v4 |
391 | 405 | with: |
392 | | - name: ${{ fromJSON(needs.prepare.outputs.artifact_map).android }} |
| 406 | + name: ${{ fromJSON(needs.prepare.outputs.artifacts).android.name }} |
| 407 | + repository: ${{ github.repository }} |
393 | 408 | run-id: ${{ github.event.workflow_run.id }} |
| 409 | + github-token: ${{ secrets.GITHUB_TOKEN }} |
394 | 410 | path: bridge_artifacts/android |
395 | 411 |
|
396 | 412 | - name: Download iOS runtime |
397 | 413 | uses: actions/download-artifact@v4 |
398 | 414 | with: |
399 | | - name: ${{ fromJSON(needs.prepare.outputs.artifact_map).ios }} |
| 415 | + name: ${{ fromJSON(needs.prepare.outputs.artifacts).ios.name }} |
| 416 | + repository: ${{ github.repository }} |
400 | 417 | run-id: ${{ github.event.workflow_run.id }} |
| 418 | + github-token: ${{ secrets.GITHUB_TOKEN }} |
401 | 419 | path: bridge_artifacts/ios |
402 | 420 |
|
403 | 421 | - name: Stage runtime binaries |
|
0 commit comments