From e0365b5423f123c4c384dfa1470e8afcc69b123b Mon Sep 17 00:00:00 2001 From: Dango <282919162@qq.com> Date: Thu, 24 Aug 2023 17:33:01 +0800 Subject: [PATCH] feat: Config --- .github/workflows/grouped.yml | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 .github/workflows/grouped.yml diff --git a/.github/workflows/grouped.yml b/.github/workflows/grouped.yml new file mode 100644 index 0000000..b068bbd --- /dev/null +++ b/.github/workflows/grouped.yml @@ -0,0 +1,33 @@ +name: Grouped Workflow + +on: [push] + +jobs: + group1_job1: + runs-on: ubuntu-latest + steps: + - name: Step 1 in Group 1 Job 1 + run: echo "Step 1 in Group 1 Job 1" + + group1_job2: + runs-on: ubuntu-latest + needs: group1_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" + + - name: Step 2 in Group 1 Job 2 + run: echo "Step 2 in Group 1 Job 2" + + group2_job1: + runs-on: ubuntu-latest + steps: + - name: Step 1 in Group 2 Job 1 + run: echo "Step 1 in Group 2 Job 1" + + group2_job2: + runs-on: ubuntu-latest + needs: group2_job1 # Group 2 Job 2 依赖于 Group 2 Job 1 + steps: + - name: Step 1 in Group 2 Job 2 + run: echo "Step 1 in Group 2 Job 2"