11name : " Test"
22on :
3+ workflow_dispatch : # Allow manual triggering of workflow
34 pull_request :
45 paths :
56 - ' flake.nix'
67 - ' flake.lock'
7- - ' **.nix'
8+ - ' packages/**.nix'
9+ - ' nixosConfigurations/**'
810 - ' .github/workflows/**'
911 push :
1012 paths :
1113 - ' flake.nix'
1214 - ' flake.lock'
13- - ' **.nix'
15+ - ' packages/**.nix'
16+ - ' nixosConfigurations/**'
1417 - ' .github/workflows/**'
1518
1619jobs :
3134
3235 ilia :
3336 runs-on : ubuntu-latest
34- if : ${{ contains(github.event.push .modified || github.event.pull_request.modified , 'ilia') || contains(github.event.push .added || github.event.pull_request.added, 'ilia') }}
37+ if : ${{ contains(github.event.files .modified, 'packages/ ilia.nix ') || contains(github.event.files .added, 'packages/ilia.nix') || github.event_name == 'workflow_dispatch' }}
3538 steps :
3639 - uses : actions/checkout@v3
3740 - uses : cachix/install-nix-action@v22
4548
4649 rofication :
4750 runs-on : ubuntu-latest
48- if : ${{ contains(github.event.push .modified || github.event.pull_request.modified , 'rofication') || contains(github.event.push .added || github.event.pull_request.added, 'rofication') }}
51+ if : ${{ contains(github.event.files .modified, 'packages/ rofication.nix ') || contains(github.event.files .added, 'packages/rofication.nix') || github.event_name == 'workflow_dispatch' }}
4952 steps :
5053 - uses : actions/checkout@v3
5154 - uses : cachix/install-nix-action@v22
@@ -59,14 +62,15 @@ jobs:
5962
6063 regolith-powerd-inputd-displayd :
6164 runs-on : ubuntu-latest
62- if : ${{ contains(github.event.push.modified || github.event.pull_request.modified, 'regolith-powerd') ||
63- contains(github.event.push.modified || github.event.pull_request.modified, 'regolith-inputd') ||
64- contains(github.event.push.modified || github.event.pull_request.modified, 'regolith-displayd') ||
65- contains(github.event.push.modified || github.event.pull_request.modified, 'libtrawldb') ||
66- contains(github.event.push.added || github.event.pull_request.added, 'regolith-powerd') ||
67- contains(github.event.push.added || github.event.pull_request.added, 'regolith-inputd') ||
68- contains(github.event.push.added || github.event.pull_request.added, 'regolith-displayd') ||
69- contains(github.event.push.added || github.event.pull_request.added, 'libtrawldb') }}
65+ if : ${{ contains(github.event.files.modified, 'packages/regolith-powerd.nix') ||
66+ contains(github.event.files.modified, 'packages/regolith-inputd.nix') ||
67+ contains(github.event.files.modified, 'packages/regolith-displayd.nix') ||
68+ contains(github.event.files.modified, 'packages/libtrawldb.nix') ||
69+ contains(github.event.files.added, 'packages/regolith-powerd.nix') ||
70+ contains(github.event.files.added, 'packages/regolith-inputd.nix') ||
71+ contains(github.event.files.added, 'packages/regolith-displayd.nix') ||
72+ contains(github.event.files.added, 'packages/libtrawldb.nix') ||
73+ github.event_name == 'workflow_dispatch' }}
7074 steps :
7175 - uses : actions/checkout@v3
7276 - uses : cachix/install-nix-action@v22
8387
8488 sway-regolith :
8589 runs-on : ubuntu-latest
86- if : ${{ contains(github.event.push .modified || github.event.pull_request.modified , 'sway-regolith') || contains(github.event.push .added || github.event.pull_request.added, 'sway-regolith') }}
90+ if : ${{ contains(github.event.files .modified, 'packages/ sway-regolith.nix ') || contains(github.event.files .added, 'packages/sway-regolith.nix') || github.event_name == 'workflow_dispatch' }}
8791 steps :
8892 - uses : actions/checkout@v3
8993 - uses : cachix/install-nix-action@v22
97101
98102 trawl :
99103 runs-on : ubuntu-latest
100- if : ${{ contains(github.event.push .modified || github.event.pull_request.modified , 'trawl') || contains(github.event.push .added || github.event.pull_request.added, 'trawl') }}
104+ if : ${{ contains(github.event.files .modified, 'packages/ trawl.nix ') || contains(github.event.files .added, 'packages/trawl.nix') || github.event_name == 'workflow_dispatch' }}
101105 steps :
102106 - uses : actions/checkout@v3
103107 - uses : cachix/install-nix-action@v22
@@ -111,7 +115,7 @@ jobs:
111115
112116 xrescat :
113117 runs-on : ubuntu-latest
114- if : ${{ contains(github.event.push .modified || github.event.pull_request.modified , 'xrescat') || contains(github.event.push .added || github.event.pull_request.added, 'xrescat') }}
118+ if : ${{ contains(github.event.files .modified, 'packages/ xrescat.nix ') || contains(github.event.files .added, 'packages/xrescat.nix') || github.event_name == 'workflow_dispatch' }}
115119 steps :
116120 - uses : actions/checkout@v3
117121 - uses : cachix/install-nix-action@v22
@@ -125,7 +129,7 @@ jobs:
125129
126130 fhs :
127131 runs-on : ubuntu-latest
128- if : ${{ contains(github.event.push .modified || github.event.pull_request.modified , 'fhs') || contains(github.event.push .added || github.event.pull_request.added, 'fhs') }}
132+ if : ${{ contains(github.event.files .modified, 'packages/ fhs.nix ') || contains(github.event.files .added, 'packages/fhs.nix') || github.event_name == 'workflow_dispatch' }}
129133 steps :
130134 - uses : actions/checkout@v3
131135 - uses : cachix/install-nix-action@v22
@@ -139,7 +143,7 @@ jobs:
139143
140144 virtual-machine :
141145 runs-on : ubuntu-latest
142- if : ${{ contains(github.event.push .modified || github.event.pull_request.modified , 'vm') || contains(github.event.push .added || github.event.pull_request.added, 'vm') }}
146+ if : ${{ contains(github.event.files .modified, 'nixosConfigurations/ vm') || contains(github.event.files .added, 'nixosConfigurations/vm') || github.event_name == 'workflow_dispatch' }}
143147 steps :
144148 - uses : actions/checkout@v3
145149 - uses : cachix/install-nix-action@v22
@@ -153,8 +157,13 @@ jobs:
153157
154158 regolith-session :
155159 runs-on : ubuntu-latest
156- if : ${{ contains(github.event.push.modified || github.event.pull_request.modified, 'regolith-session') ||
157- contains(github.event.push.added || github.event.pull_request.added, 'regolith-session') }}
160+ if : ${{ contains(github.event.files.modified, 'packages/regolith-session.nix') ||
161+ contains(github.event.files.modified, 'packages/regolith-session-wayland.nix') ||
162+ contains(github.event.files.modified, 'packages/regolith-session-x11.nix') ||
163+ contains(github.event.files.added, 'packages/regolith-session.nix') ||
164+ contains(github.event.files.added, 'packages/regolith-session-wayland.nix') ||
165+ contains(github.event.files.added, 'packages/regolith-session-x11.nix') ||
166+ github.event_name == 'workflow_dispatch' }}
158167 steps :
159168 - uses : actions/checkout@v3
160169 - uses : cachix/install-nix-action@v22
@@ -170,12 +179,13 @@ jobs:
170179
171180 status-bar :
172181 runs-on : ubuntu-latest
173- if : ${{ contains(github.event.push.modified || github.event.pull_request.modified, 'i3-swap-focus') ||
174- contains(github.event.push.modified || github.event.pull_request.modified, 'i3status-rs') ||
175- contains(github.event.push.modified || github.event.pull_request.modified, 'i3xrocks') ||
176- contains(github.event.push.added || github.event.pull_request.added, 'i3-swap-focus') ||
177- contains(github.event.push.added || github.event.pull_request.added, 'i3status-rs') ||
178- contains(github.event.push.added || github.event.pull_request.added, 'i3xrocks') }}
182+ if : ${{ contains(github.event.files.modified, 'packages/i3-swap-focus.nix') ||
183+ contains(github.event.files.modified, 'packages/i3status-rs.nix') ||
184+ contains(github.event.files.modified, 'packages/i3xrocks.nix') ||
185+ contains(github.event.files.added, 'packages/i3-swap-focus.nix') ||
186+ contains(github.event.files.added, 'packages/i3status-rs.nix') ||
187+ contains(github.event.files.added, 'packages/i3xrocks.nix') ||
188+ github.event_name == 'workflow_dispatch' }}
179189 steps :
180190 - uses : actions/checkout@v3
181191 - uses : cachix/install-nix-action@v22
@@ -191,20 +201,21 @@ jobs:
191201
192202 regolith-config-styles-essentials :
193203 runs-on : ubuntu-latest
194- if : ${{ contains(github.event.push.modified || github.event.pull_request.modified, 'regolith-wm-config') ||
195- contains(github.event.push.modified || github.event.pull_request.modified, 'regolith-xresources') ||
196- contains(github.event.push.modified || github.event.pull_request.modified, 'regolith-ftue') ||
197- contains(github.event.push.modified || github.event.pull_request.modified, 'remontoire') ||
198- contains(github.event.push.modified || github.event.pull_request.modified, 'regolith-styles') ||
199- contains(github.event.push.modified || github.event.pull_request.modified, 'regolith-look-default') ||
200- contains(github.event.push.modified || github.event.pull_request.modified, 'regolith-look-extra') ||
201- contains(github.event.push.added || github.event.pull_request.added, 'regolith-wm-config') ||
202- contains(github.event.push.added || github.event.pull_request.added, 'regolith-xresources') ||
203- contains(github.event.push.added || github.event.pull_request.added, 'regolith-ftue') ||
204- contains(github.event.push.added || github.event.pull_request.added, 'remontoire') ||
205- contains(github.event.push.added || github.event.pull_request.added, 'regolith-styles') ||
206- contains(github.event.push.added || github.event.pull_request.added, 'regolith-look-default') ||
207- contains(github.event.push.added || github.event.pull_request.added, 'regolith-look-extra') }}
204+ if : ${{ contains(github.event.files.modified, 'packages/regolith-wm-config.nix') ||
205+ contains(github.event.files.modified, 'packages/regolith-xresources.nix') ||
206+ contains(github.event.files.modified, 'packages/regolith-ftue.nix') ||
207+ contains(github.event.files.modified, 'packages/remontoire.nix') ||
208+ contains(github.event.files.modified, 'packages/regolith-styles.nix') ||
209+ contains(github.event.files.modified, 'packages/regolith-look-default.nix') ||
210+ contains(github.event.files.modified, 'packages/regolith-look-extra.nix') ||
211+ contains(github.event.files.added, 'packages/regolith-wm-config.nix') ||
212+ contains(github.event.files.added, 'packages/regolith-xresources.nix') ||
213+ contains(github.event.files.added, 'packages/regolith-ftue.nix') ||
214+ contains(github.event.files.added, 'packages/remontoire.nix') ||
215+ contains(github.event.files.added, 'packages/regolith-styles.nix') ||
216+ contains(github.event.files.added, 'packages/regolith-look-default.nix') ||
217+ contains(github.event.files.added, 'packages/regolith-look-extra.nix') ||
218+ github.event_name == 'workflow_dispatch' }}
208219 steps :
209220 - uses : actions/checkout@v3
210221 - uses : cachix/install-nix-action@v22
0 commit comments