Skip to content

Commit d1d6b48

Browse files
committed
Fixes some issue
1 parent b8c9196 commit d1d6b48

4 files changed

Lines changed: 24 additions & 6 deletions

File tree

.github/workflows/arduino-esp-v2-build-check.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff 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 }}

.github/workflows/arduino-esp-v3-build-check.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff 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 }}

.github/workflows/arduino-m5-build-check.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff 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

.github/workflows/platformio-build-check.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff 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 }}

0 commit comments

Comments
 (0)