chore: fix ci download artifact logic (#45661)

如果上一个 Preview Build 因为连续提交,会导致这里下载失败。直接把 if 逻辑提升一级
This commit is contained in:
2023-11-03 18:27:01 +08:00 committed by GitHub
parent e0a6244303
commit f15bddf6cb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -74,6 +74,7 @@ jobs:
# Download site artifact
- name: download site artifact
if: ${{ fromJSON(needs.upstream-workflow-summary.outputs.build-success) }}
uses: dawidd6/action-download-artifact@v2
with:
workflow: ${{ github.event.workflow_run.workflow_id }}
@ -81,7 +82,6 @@ jobs:
name: site
- name: upload surge service
if: ${{ fromJSON(needs.upstream-workflow-summary.outputs.build-success) }}
id: deploy
continue-on-error: true
run: |