@@ -20,17 +20,17 @@ runs:
20
20
# Try to get pr artifact from current workflow
21
21
- name : Download current PR artifact
22
22
id : get-pr-artifact
23
- uses : actions/download-artifact@v3
23
+ uses : actions/download-artifact@v4
24
24
continue-on-error : true
25
25
with :
26
- name : pr
26
+ name : pr-id
27
27
28
28
# If the above fails, try to get the latest pr artifact from the PR related workflows
29
29
- name : Download latest PR artifact
30
30
uses : dawidd6/action-download-artifact@v6
31
31
if : ${{ steps.get-pr-artifact.outcome == 'failure' }}
32
32
with :
33
- name : pr
33
+ name : pr-id
34
34
pr : ${{ github.event.pull_request.number }}
35
35
# Can be ID or workflow file name, if empty falls back to the latest successful run of the current workflow
36
36
workflow : ${{ env.PR_ARTIFACT_WORKFLOW }}
40
40
shell : bash
41
41
run : echo "pr_id=$(<pr-id.txt)" >> $GITHUB_OUTPUT
42
42
43
+ - name : Download preview instance URL
44
+ id : get-preview-instance-url-artifact
45
+ if : inputs.include-preview
46
+ uses : actions/download-artifact@v4
47
+ with :
48
+ name : preview-instance-url
49
+
50
+ # If the above fails, try to get the latest pr artifact from the PR related workflows
51
+ - name : Download latest PR artifact
52
+ uses : dawidd6/action-download-artifact@v6
53
+ if : ${{ steps.get-preview-instance-url-artifact.outcome == 'failure' }}
54
+ with :
55
+ name : preview-instance-url
56
+ pr : ${{ github.event.pull_request.number }}
57
+ # Can be ID or workflow file name, if empty falls back to the latest successful run of the current workflow
58
+ workflow : ${{ env.PR_ARTIFACT_WORKFLOW }}
59
+
43
60
- name : Load the Ephemeral Instance URL
44
61
shell : bash
45
62
if : inputs.include-preview
0 commit comments