@@ -123,6 +123,7 @@ jobs:
123123 run : cp stratisd.conf /usr/share/dbus-1/system.d
124124 working-directory : stratisd
125125 - name : Check out jbaublitz/stratis-cli
126+ if : github.event_name == 'pull_request'
126127 id : jbaublitz
127128 continue-on-error : true
128129 uses : actions/checkout@v4
@@ -131,6 +132,7 @@ jobs:
131132 path : jbaublitz
132133 ref : ${{ github.head_ref }}
133134 - name : Check out mulkieran/stratis-cli
135+ if : github.event_name == 'pull_request'
134136 id : mulkieran
135137 continue-on-error : true
136138 uses : actions/checkout@v4
@@ -139,18 +141,18 @@ jobs:
139141 path : mulkieran
140142 ref : ${{ github.head_ref }}
141143 - name : Check if both checkouts succeeded
142- if : steps.jbaublitz.outcome == 'success' && steps.mulkieran.outcome == 'success'
144+ if : github.event_name == 'pull_request' && steps.jbaublitz.outcome == 'success' && steps.mulkieran.outcome == 'success'
143145 run : |
144146 echo "Branch conflict!"
145147 exit 1
146148 - name : Conditionally make jbaublitz checkout branch the chosen one
147- if : steps.jbaublitz.outcome == 'success'
149+ if : github.event_name == 'pull_request' && steps.jbaublitz.outcome == 'success'
148150 run : mv jbaublitz stratis-cli
149151 - name : Conditionally make mulkieran checkout branch the chosen one
150- if : steps.mulkieran.outcome == 'success'
152+ if : github.event_name == 'pull_request' && steps.mulkieran.outcome == 'success'
151153 run : mv mulkieran stratis-cli
152154 - name : Check out stratis-cli if no alternative branch was checked out
153- if : steps.mulkieran.outcome == 'failure' && steps.jbaublitz.outcome == 'failure'
155+ if : github.event_name == 'pull_request' && steps.mulkieran.outcome == 'failure' && steps.jbaublitz.outcome == 'failure'
154156 uses : actions/checkout@v4
155157 with :
156158 repository : stratis-storage/stratis-cli
@@ -339,6 +341,7 @@ jobs:
339341 - name : Reload udev
340342 run : sudo udevadm control --reload
341343 - name : Check out jbaublitz/testing
344+ if : github.event_name == 'pull_request'
342345 id : jbaublitz
343346 continue-on-error : true
344347 uses : actions/checkout@v4
@@ -347,6 +350,7 @@ jobs:
347350 path : jbaublitz
348351 ref : ${{ github.head_ref }}
349352 - name : Check out mulkieran/testing
353+ if : github.event_name == 'pull_request'
350354 id : mulkieran
351355 continue-on-error : true
352356 uses : actions/checkout@v4
@@ -355,18 +359,18 @@ jobs:
355359 path : mulkieran
356360 ref : ${{ github.head_ref }}
357361 - name : Check if both checkouts succeeded
358- if : steps.jbaublitz.outcome == 'success' && steps.mulkieran.outcome == 'success'
362+ if : github.event_name == 'pull_request' && steps.jbaublitz.outcome == 'success' && steps.mulkieran.outcome == 'success'
359363 run : |
360364 echo "Branch conflict!"
361365 exit 1
362366 - name : Conditionally make jbaublitz checkout branch the chosen one
363- if : steps.jbaublitz.outcome == 'success'
367+ if : github.event_name == 'pull_request' && steps.jbaublitz.outcome == 'success'
364368 run : mv jbaublitz testing
365369 - name : Conditionally make mulkieran checkout branch the chosen one
366- if : steps.mulkieran.outcome == 'success'
370+ if : github.event_name == 'pull_request' && steps.mulkieran.outcome == 'success'
367371 run : mv mulkieran testing
368372 - name : Check out testing if no alternative branch was checked out
369- if : steps.mulkieran.outcome == 'failure' && steps.jbaublitz.outcome == 'failure'
373+ if : github.event_name == 'pull_request' && steps.mulkieran.outcome == 'failure' && steps.jbaublitz.outcome == 'failure'
370374 uses : actions/checkout@v4
371375 with :
372376 repository : stratis-storage/testing
0 commit comments