File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -132,7 +132,11 @@ jobs:
132132 board : m5stack-core-esp32
133133
134134 steps :
135- - name : Checkout
135+ - name : Checkout (push)
136+ if : ${{ github.event_name != 'pull_request' }}
137+ uses : actions/checkout@v4
138+ - name : Checkout (PR, pin to head)
139+ if : ${{ github.event_name == 'pull_request' }}
136140 uses : actions/checkout@v4
137141 with :
138142 ref : ${{ github.event.pull_request.head.sha }}
Original file line number Diff line number Diff line change @@ -184,7 +184,11 @@ jobs:
184184
185185
186186 steps :
187- - name : Checkout
187+ - name : Checkout (push)
188+ if : ${{ github.event_name != 'pull_request' }}
189+ uses : actions/checkout@v4
190+ - name : Checkout (PR, pin to head)
191+ if : ${{ github.event_name == 'pull_request' }}
188192 uses : actions/checkout@v4
189193 with :
190194 ref : ${{ github.event.pull_request.head.sha }}
@@ -200,5 +204,6 @@ jobs:
200204 extra-arduino-cli-args : ${{ matrix.cli-args }}
201205 build-properties : ${{ matrix.unit == 'UnitFinger' && '-DUSING_UNIT_FINGER' || (matrix.unit == 'HatFinger' && '-DUSING_HAT_FINGER' || '') }}
202206 sketch-names : ${{ matrix.sketch }}.ino
203- sketch-names-find-start : ${{ env.SKETCH_NAMES_FIND_START }}/${{ matrix.unit }}
207+ # sketch-names-find-start: ${{ env.SKETCH_NAMES_FIND_START }}/${{ matrix.unit }}
208+ sketch-names-find-start : ${{ env.SKETCH_NAMES_FIND_START }}/${{ (matrix.unit == 'HatFinger') && 'UnitFinger' || matrix.unit }}
204209 # sketches-exclude: ${{ matrix.sketches-exclude }}
Original file line number Diff line number Diff line change @@ -186,7 +186,11 @@ jobs:
186186
187187
188188 steps :
189- - name : Checkout
189+ - name : Checkout (push)
190+ if : ${{ github.event_name != 'pull_request' }}
191+ uses : actions/checkout@v4
192+ - name : Checkout (PR, pin to head)
193+ if : ${{ github.event_name == 'pull_request' }}
190194 uses : actions/checkout@v4
191195 with :
192196 ref : ${{ github.event.pull_request.head.sha }}
@@ -202,6 +206,7 @@ jobs:
202206 extra-arduino-cli-args : ${{ matrix.cli-args }}
203207 build-properties : ${{ matrix.unit == 'UnitFinger' && '-DUSING_UNIT_FINGER' || (matrix.unit == 'HatFinger' && '-DUSING_HAT_FINGER' || '') }}
204208 sketch-names : ${{ matrix.sketch }}.ino
205- sketch-names-find-start : ${{ env.SKETCH_NAMES_FIND_START }}/${{ matrix.unit }}
209+ # sketch-names-find-start: ${{ env.SKETCH_NAMES_FIND_START }}/${{ matrix.unit }}
210+ sketch-names-find-start : ${{ env.SKETCH_NAMES_FIND_START }}/${{ (matrix.unit == 'HatFinger') && 'UnitFinger' || matrix.unit }}
206211 # sketches-exclude: ${{ matrix.sketches-exclude }}
207212
Original file line number Diff line number Diff line change @@ -146,7 +146,11 @@ jobs:
146146
147147
148148 steps :
149- - name : Checkout
149+ - name : Checkout (push)
150+ if : ${{ github.event_name != 'pull_request' }}
151+ uses : actions/checkout@v4
152+ - name : Checkout (PR, pin to head)
153+ if : ${{ github.event_name == 'pull_request' }}
150154 uses : actions/checkout@v4
151155 with :
152156 ref : ${{ github.event.pull_request.head.sha }}
You can’t perform that action at this time.
0 commit comments