@@ -20,17 +20,17 @@ runs:
2020 # Try to get pr artifact from current workflow
2121 - name : Download current PR artifact
2222 id : get-pr-artifact
23- uses : actions/download-artifact@v3
23+ uses : actions/download-artifact@v4
2424 continue-on-error : true
2525 with :
26- name : pr
26+ name : pr-id
2727
2828 # If the above fails, try to get the latest pr artifact from the PR related workflows
2929 - name : Download latest PR artifact
3030 uses : dawidd6/action-download-artifact@v6
3131 if : ${{ steps.get-pr-artifact.outcome == 'failure' }}
3232 with :
33- name : pr
33+ name : pr-id
3434 pr : ${{ github.event.pull_request.number }}
3535 # Can be ID or workflow file name, if empty falls back to the latest successful run of the current workflow
3636 workflow : ${{ env.PR_ARTIFACT_WORKFLOW }}
4040 shell : bash
4141 run : echo "pr_id=$(<pr-id.txt)" >> $GITHUB_OUTPUT
4242
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+
4360 - name : Load the Ephemeral Instance URL
4461 shell : bash
4562 if : inputs.include-preview
0 commit comments