From c13344fb13af43b86ed57b49eec31866de0f9d01 Mon Sep 17 00:00:00 2001 From: xrkffgg Date: Mon, 17 Oct 2022 21:42:11 +0800 Subject: [PATCH] ci: fix UI Upload (#38069) --- .github/workflows/ui-upload.yml | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ui-upload.yml b/.github/workflows/ui-upload.yml index b12309bbd1..0129544f57 100644 --- a/.github/workflows/ui-upload.yml +++ b/.github/workflows/ui-upload.yml @@ -11,12 +11,18 @@ permissions: contents: read jobs: + wait: + runs-on: ubuntu-latest + steps: + - name: Wait + run: sleep 60 upload-ui: permissions: actions: read # for dawidd6/action-download-artifact to query and download artifacts pull-requests: read # for dawidd6/action-download-artifact to query commit hash name: deploy preview runs-on: ubuntu-latest + needs: wait if: > github.repository == 'ant-design/ant-design' && github.event.workflow_run.conclusion == 'success' @@ -25,7 +31,7 @@ jobs: uses: actions/checkout@v3 - name: Download commit artifact - uses: dawidd6/action-download-artifact@v2.23.0 + uses: dawidd6/action-download-artifact@v2 with: workflow: ${{ github.event.workflow_run.workflow_id }} name: commit @@ -35,7 +41,7 @@ jobs: run: echo "::set-output name=id::$(