Skip to content

Commit 88bbef6

Browse files
committed
Merge branch 'master' into dev
2 parents fc103a7 + 3218647 commit 88bbef6

File tree

2 files changed

+11
-20
lines changed

2 files changed

+11
-20
lines changed

.github/workflows/v2-build-and-deploy.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,4 +98,5 @@ jobs:
9898
with:
9999
environment: ${{ github.event.inputs.environment }}
100100
artifact-name: build-and-deploy-${{ github.event.inputs.target }}
101+
workflow-run-id: ${{ github.run_id }}
101102
preview: ${{ github.event.inputs.as-previews == 'true' }}

.github/workflows/v2-deploy-demos.yml

Lines changed: 10 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,9 @@ on:
1010
description: Name of artifact containing demo zip files.
1111
type: string
1212
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.
1414
type: string
15-
required: false
16-
default: ''
15+
required: true
1716
preview:
1817
description: Whether to deploy demos as preview.
1918
type: boolean
@@ -29,10 +28,9 @@ on:
2928
description: Name of artifact containing demo zip files.
3029
type: string
3130
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.
3332
type: string
34-
required: false
35-
default: ''
33+
required: true
3634
preview:
3735
description: Whether to deploy demos as preview.
3836
type: boolean
@@ -65,21 +63,13 @@ jobs:
6563
- name: Install python requirements
6664
run: pip install -r .github/workflows/qml_pipeline_v2/requirements.txt
6765

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
8068
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
8373

8474
- name: Deploy demos
8575
run: |

0 commit comments

Comments
 (0)