|
6 | 6 | branches: [main, release] |
7 | 7 | types: |
8 | 8 | - completed |
| 9 | + workflow_dispatch: |
| 10 | + inputs: |
| 11 | + branch: |
| 12 | + type: string |
| 13 | + description: Branch corresponding to the docker images being cached |
| 14 | + required: true |
| 15 | + run_id: |
| 16 | + type: string |
| 17 | + description: Workflow run id to pull artifacts from |
| 18 | + required: true |
9 | 19 |
|
10 | 20 | concurrency: |
11 | | - group: ${{ github.workflow }}-${{ github.event.workflow_run.head_branch }} |
| 21 | + group: ${{ github.workflow }}-${{ github.event.workflow_run.head_branch || github.event.inputs.branch }} |
12 | 22 | cancel-in-progress: true |
13 | 23 |
|
14 | 24 | permissions: |
|
29 | 39 | - name: Download artifacts |
30 | 40 | |
31 | 41 | with: |
32 | | - run-id: ${{ github.event.workflow_run.id }} |
| 42 | + run-id: ${{ github.event.workflow_run.id || github.event.inputs.run_id }} |
33 | 43 | path: ./docker-builds-artifacts |
34 | 44 | merge-multiple: true |
35 | 45 | github-token: ${{ secrets.GITHUB_TOKEN }} |
|
49 | 59 | matrix: |
50 | 60 | runner: [linux.rocm.gfx942.docker-cache] |
51 | 61 | docker-image: [ |
52 | | - "${{ needs.download-docker-builds-artifacts.outputs.pytorch-linux-jammy-rocm-n-py3 }}" |
53 | | - #"${{ needs.download-docker-builds-artifacts.outputs.pytorch-linux-jammy-rocm-n-py3 }}", |
54 | | - #"${{ needs.download-docker-builds-artifacts.outputs.pytorch-linux-noble-rocm-n-py3 }}", |
| 62 | + "${{ needs.download-docker-builds-artifacts.outputs.pytorch-linux-jammy-rocm-n-py3 }}", |
| 63 | + "${{ needs.download-docker-builds-artifacts.outputs.pytorch-linux-noble-rocm-n-py3 }}" |
55 | 64 | #"${{ needs.download-docker-builds-artifacts.outputs.pytorch-linux-jammy-rocm-n-py3-benchmarks }}" |
56 | 65 | ] |
57 | 66 | runs-on: "${{ matrix.runner }}" |
|
91 | 100 | docker_image_tag=${{ matrix.docker-image }} |
92 | 101 | docker_image_tag="${docker_image_tag#*:}" # Remove everything before and including first ":" |
93 | 102 | docker_image_tag="${docker_image_tag%-*}" # Remove everything after and including last "-" |
94 | | - ref_name=${{ github.event.workflow_run.head_branch }} |
| 103 | + ref_name=${{ github.event.workflow_run.head_branch || github.event.inputs.branch }} |
95 | 104 | if [[ $ref_name =~ "release/" ]]; then |
96 | 105 | ref_suffix="release" |
97 | 106 | elif [[ $ref_name == "main" ]]; then |
|
0 commit comments