-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (42 loc) · 898 Bytes
/
complex_workflow.yml
File metadata and controls
43 lines (42 loc) · 898 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
name: complex-workflow
#push trigger
on:
push:
branches:
- main
#Multiple runners
jobs:
job1:
name: First Job
runs-on: ubuntu-latest
steps:
- name: Step One
uses: actions/checkout@v4
- name: Step Two
run: env | sort
job2:
name: Second Job
runs-on: windows-latest
steps:
- name: Step One
uses: actions/checkout@v4
- name: Step Two
run: "Get-ChildItem Env: | Sort-Object Name"
job3:
name: Third Job
runs-on: macos-latest
steps:
- name: Step One
uses: actions/checkout@v4
- name: Step Two
run: echo " This is MacOS, sying hello to GitHub Action"
#Job dependencies
job4:
needs: [job1, job2, job3]
name: Fourth Job
runs-on: windows-latest
steps:
- name: Step One
uses: actions/checkout@v4
- name: Step Two
run: Write-Output "Hello GitHub Actions"