This is an automated email from the ASF dual-hosted git repository.

klion26 pushed a commit to branch run-jobs-sync
in repository https://gitbox.apache.org/repos/asf/amoro-site.git

commit f2528f9ff59520eccbd955e817e2c3974b33b4ae
Author: klion26 <[email protected]>
AuthorDate: Mon Dec 23 10:47:20 2024 +0800

    Run deploy jobs sequentially to avoid deploy confilicts
    
    More info please ref to 
https://docs.github.com/en/actions/writing-workflows/choosing-what-your-workflow-does/using-jobs-in-a-workflow#example-requiring-successful-dependent-jobs
---
 .github/workflows/deploy.yml | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml
index 428beec..04ba626 100644
--- a/.github/workflows/deploy.yml
+++ b/.github/workflows/deploy.yml
@@ -28,6 +28,7 @@ jobs:
           keep_files: true
 
   deploy-latest-docs-page:
+    needs: deploy-site-page
     if: github.ref == 'refs/heads/master'
     runs-on: ubuntu-20.04
     steps:
@@ -52,6 +53,7 @@ jobs:
           keep_files: true
 
   deploy-versioned-docs-page:
+    needs: [deploy-site-page, deploy-latest-docs-page]
     if: github.ref != 'refs/heads/master'
     runs-on: ubuntu-20.04
     continue-on-error: true
@@ -77,4 +79,4 @@ jobs:
           github_token: ${{ secrets.GITHUB_TOKEN }}
           publish_dir: ./output/docs/${{ steps.vars.outputs.branch_name }}
           publish_branch: asf-site
-          destination_dir: ./output/docs/${{ steps.vars.outputs.branch_name }}
\ No newline at end of file
+          destination_dir: ./output/docs/${{ steps.vars.outputs.branch_name }}

Reply via email to