|
10 | 10 | description: Name of artifact containing demo zip files.
|
11 | 11 | type: string
|
12 | 12 | workflow-run-id:
|
13 |
| - description: ID of the workflow run the artifact is from. Needed for PR previews. |
| 13 | + description: ID of the workflow run the artifact is from. |
14 | 14 | type: string
|
15 |
| - required: false |
16 |
| - default: '' |
| 15 | + required: true |
17 | 16 | preview:
|
18 | 17 | description: Whether to deploy demos as preview.
|
19 | 18 | type: boolean
|
|
29 | 28 | description: Name of artifact containing demo zip files.
|
30 | 29 | type: string
|
31 | 30 | workflow-run-id:
|
32 |
| - description: ID of the workflow run the artifact is from. Needed for PR previews. |
| 31 | + description: ID of the workflow run the artifact is from. |
33 | 32 | type: string
|
34 |
| - required: false |
35 |
| - default: '' |
| 33 | + required: true |
36 | 34 | preview:
|
37 | 35 | description: Whether to deploy demos as preview.
|
38 | 36 | type: boolean
|
@@ -65,21 +63,13 @@ jobs:
|
65 | 63 | - name: Install python requirements
|
66 | 64 | run: pip install -r .github/workflows/qml_pipeline_v2/requirements.txt
|
67 | 65 |
|
68 |
| - - name: Fetch demo build artifact from another workflow |
69 |
| - if: ${{ inputs.workflow-run-id }} != '' |
70 |
| - uses: actions/download-artifact@v4 |
71 |
| - with: |
72 |
| - name: ${{ inputs.artifact-name }} |
73 |
| - run-id: ${{ inputs.workflow-run-id }} |
74 |
| - github-token: ${{ github.token }} |
75 |
| - path: _build/pack |
76 |
| - |
77 |
| - - name: Fetch demo build artifact from this workflow |
78 |
| - if: ${{ inputs.workflow-run-id }} == '' |
79 |
| - uses: actions/download-artifact@v4 |
| 66 | + - name: Fetch demo build artifact |
| 67 | + uses: XanaduAI/cloud-actions/download-github-workflow-artifact@main |
80 | 68 | with:
|
81 |
| - name: ${{ inputs.artifact-name }} |
82 |
| - path: _build/pack |
| 69 | + artifact_name_regex: ${{ inputs.artifact-name }} |
| 70 | + workflow_run_id: ${{ inputs.workflow-run-id }} |
| 71 | + github_token: ${{ github.token }} |
| 72 | + artifact_download_dir: _build/pack |
83 | 73 |
|
84 | 74 | - name: Deploy demos
|
85 | 75 | run: |
|
|
0 commit comments