File tree 4 files changed +51
-18
lines changed
4 files changed +51
-18
lines changed Original file line number Diff line number Diff line change 1
1
# Copyright (c) Microsoft Corporation.
2
2
# Licensed under the MIT license.
3
3
4
- name : PowerShell daily Formula
4
+ name : PowerShell daily Formula PR
5
5
6
6
permissions : read-all
7
7
8
8
on :
9
9
workflow_dispatch :
10
10
push :
11
11
paths :
12
- - ' .github/workflows/powershell-daily.yml'
12
+ - ' .github/workflows/PR- powershell-daily.yml'
13
13
- ' Formula/powershell-daily.rb'
14
14
branches :
15
15
- master
16
16
pull_request :
17
- paths :
18
- - ' .github/workflows/powershell-daily.yml'
19
- - ' Formula/powershell-daily.rb'
20
17
21
18
defaults :
22
19
run :
37
34
steps :
38
35
- name : Checkout
39
36
uses : actions/checkout@v2
37
+
38
+ - name : Check for applicable files
39
+ uses : dorny/paths-filter@4512585405083f25c027a35db413c2b3b9006d50
40
+ id : filter
41
+ with :
42
+ filters : |
43
+ workflows:
44
+ - .github/workflows/PR-powershell-daily.yml
45
+ - Formula/powershell-daily.rb
40
46
41
47
- name : Prepare Agent
48
+ if : steps.filter.outputs.workflows == 'true'
42
49
uses : ./.github/workflows/composite/prep
43
50
44
51
- name : Install and Test Formula
52
+ if : steps.filter.outputs.workflows == 'true'
45
53
uses : ./.github/workflows/composite/installAndTest
Original file line number Diff line number Diff line change @@ -8,14 +8,11 @@ permissions: read-all
8
8
on :
9
9
push :
10
10
paths :
11
- - ' .github/workflows/powershell-lts.yml'
11
+ - ' .github/workflows/PR- powershell-lts.yml'
12
12
- ' Formula/powershell-lts.rb'
13
13
branches :
14
14
- master
15
15
pull_request :
16
- paths :
17
- - ' .github/workflows/powershell-lts.yml'
18
- - ' Formula/powershell-lts.rb'
19
16
20
17
defaults :
21
18
run :
36
33
- name : Checkout
37
34
uses : actions/checkout@v2
38
35
36
+ - name : Check for applicable files
37
+ uses : dorny/paths-filter@4512585405083f25c027a35db413c2b3b9006d50
38
+ id : filter
39
+ with :
40
+ filters : |
41
+ workflows:
42
+ - '.github/workflows/PR-powershell-lts.yml'
43
+ - 'Formula/powershell-lts.rb'
44
+
39
45
- name : Prepare Agent
46
+ if : steps.filter.outputs.workflows == 'true'
40
47
uses : ./.github/workflows/composite/prep
41
48
42
49
- name : Install and Test Formula
50
+ if : steps.filter.outputs.workflows == 'true'
43
51
uses : ./.github/workflows/composite/installAndTest
Original file line number Diff line number Diff line change @@ -8,14 +8,11 @@ permissions: read-all
8
8
on :
9
9
push :
10
10
paths :
11
- - ' .github/workflows/powershell-preview.yml'
11
+ - ' .github/workflows/PR- powershell-preview.yml'
12
12
- ' Formula/powershell-preview.rb'
13
13
branches :
14
14
- master
15
15
pull_request :
16
- paths :
17
- - ' .github/workflows/powershell-preview.yml'
18
- - ' Formula/powershell-preview.rb'
19
16
20
17
defaults :
21
18
run :
35
32
steps :
36
33
- name : Checkout
37
34
uses : actions/checkout@v2
35
+
36
+ - name : Check for applicable files
37
+ uses : dorny/paths-filter@4512585405083f25c027a35db413c2b3b9006d50
38
+ id : filter
39
+ with :
40
+ filters : |
41
+ workflows:
42
+ - .github/workflows/PR-powershell-preview.yml
43
+ - Formula/powershell-preview.rb
38
44
39
45
- name : Prepare Agent
46
+ if : steps.filter.outputs.workflows == 'true'
40
47
uses : ./.github/workflows/composite/prep
41
48
42
49
- name : Install and Test Formula
50
+ if : steps.filter.outputs.workflows == 'true'
43
51
uses : ./.github/workflows/composite/installAndTest
Original file line number Diff line number Diff line change 1
1
# Copyright (c) Microsoft Corporation.
2
2
# Licensed under the MIT license.
3
3
4
- name : PowerShell Formula CI
4
+ name : PowerShell Formula PR
5
5
6
6
permissions : read-all
7
7
8
8
on :
9
9
workflow_dispatch :
10
10
push :
11
11
paths :
12
- - ' .github/workflows/powershell.yml'
12
+ - ' .github/workflows/PR- powershell.yml'
13
13
- ' Formula/powershell.rb'
14
14
branches :
15
15
- master
16
16
pull_request :
17
- paths :
18
- - ' .github/workflows/powershell.yml'
19
- - ' Formula/powershell.rb'
20
17
21
18
defaults :
22
19
run :
@@ -38,10 +35,21 @@ jobs:
38
35
- name : Checkout
39
36
uses : actions/checkout@v2
40
37
38
+ - name : Check for applicable files
39
+ uses : dorny/paths-filter@4512585405083f25c027a35db413c2b3b9006d50
40
+ id : filter
41
+ with :
42
+ filters : |
43
+ workflows:
44
+ - '.github/workflows/PR-powershell.yml'
45
+ - 'Formula/powershell.rb'
46
+
41
47
- name : Prepare Agent
48
+ if : steps.filter.outputs.workflows == 'true'
42
49
uses : ./.github/workflows/composite/prep
43
50
44
51
- name : Uninstall PowerShell
52
+ if : steps.filter.outputs.workflows == 'true'
45
53
shell : bash
46
54
run : |
47
55
cd /
50
58
sudo pkgutil --forget ${PKG_ID}
51
59
52
60
- name : Install and Test Formula
61
+ if : steps.filter.outputs.workflows == 'true'
53
62
uses : ./.github/workflows/composite/installAndTest
You can’t perform that action at this time.
0 commit comments