Skip to content

Commit

Permalink
feat: Config
Browse files Browse the repository at this point in the history
  • Loading branch information
dango2887 committed Aug 24, 2023
1 parent c753fe5 commit e0365b5
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/grouped.yml
Original file line number Diff line number Diff line change
@@ -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"

0 comments on commit e0365b5

Please sign in to comment.