diff --git a/.github/workflows/grouped.yml b/.github/workflows/grouped.yml index 4719494..88289d5 100644 --- a/.github/workflows/grouped.yml +++ b/.github/workflows/grouped.yml @@ -11,6 +11,7 @@ jobs: job2: runs-on: windows-latest + needs: group2_job1 steps: - name: 执行作业2 run: echo "Job 2 is running" @@ -28,7 +29,7 @@ jobs: group1_job2: runs-on: ubuntu-latest - needs: group1_job1 # Group 1 Job 2 依赖于 Group 1 Job 1 + needs: group1_job1, job1 # Group 1 Job 2 依赖于 Group 1 Job 1 steps: - name: Step 1 in Group 1 Job 2 run: echo "Step 1 in Group 1 Job 2"