Skip to content

Commit a61d4bb

Browse files
committed
merge multiple action conditionals
1 parent 1f41c2f commit a61d4bb

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

.github/workflows/release-offline.yml

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -255,23 +255,19 @@ jobs:
255255
uses: andstor/file-existence-action@v3
256256
with:
257257
files: "/home/runner/.arduino15/packages/esp32/hardware/esp32/*/tools/partitions/boot_app0.bin"
258-
- if: ${{ steps.get_tinyuf2.outcome == 'success' }}
258+
- if: ${{ steps.get_tinyuf2.outcome == 'success' && steps.check_files.outputs.files_exists == 'true' }}
259259
name: list arduino esp32 core files
260-
if: steps.check_files.outputs.files_exists == 'true'
261260
run: |
262261
ls /home/runner/.arduino15/packages/esp32/hardware/esp32/*/tools/partitions
263-
- if: ${{ steps.get_tinyuf2.outcome == 'success' }}
262+
- if: ${{ steps.get_tinyuf2.outcome == 'success' && steps.check_files.outputs.files_exists == 'false' }}
264263
name: list arduino esp32 bsp core files
265-
if: steps.check_files.outputs.files_exists == 'false'
266264
run: |
267265
ls /home/runner/Arduino/hardware/espressif/esp32/tools/partitions
268-
- if: ${{ steps.get_tinyuf2.outcome == 'success' }}
266+
- if: ${{ steps.get_tinyuf2.outcome == 'success' && steps.check_files.outputs.files_exists == 'true' }}
269267
name: boot_app0 file from arduino-cli core
270-
if: steps.check_files.outputs.files_exists == 'true'
271268
run: cp /home/runner/.arduino15/packages/esp32/hardware/esp32/*/tools/partitions/boot_app0.bin wippersnapper.${{ matrix.arduino-platform }}.${{ env.WS_VERSION }}.boot_app0.bin
272-
- if: ${{ steps.get_tinyuf2.outcome == 'success' }}
269+
- if: ${{ steps.get_tinyuf2.outcome == 'success' && steps.check_files.outputs.files_exists == 'false' }}
273270
name: boot_app0 file from esp32 source bsp
274-
if: steps.check_files.outputs.files_exists == 'false'
275271
run: cp /home/runner/Arduino/hardware/espressif/esp32/tools/partitions/boot_app0.bin wippersnapper.${{ matrix.arduino-platform }}.${{ env.WS_VERSION }}.boot_app0.bin
276272
- if: ${{ steps.get_tinyuf2.outcome == 'success' }}
277273
name: Copy boot_app0 file to ota_data_initial.bin (overwrite tinyuf2 boot preference)

0 commit comments

Comments
 (0)