Skip to content
This repository was archived by the owner on Jan 18, 2024. It is now read-only.

Commit f9daba0

Browse files
Khalil Estellkammce
authored andcommitted
👷 Skip demo builds if demos/ doesn't exist
1 parent f05d32b commit f9daba0

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

.github/workflows/platform_deploy.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,14 @@ jobs:
9191
- name: 📦 Create `Release` package for ${{ inputs.profile }}
9292
run: conan create . -pr ${{ inputs.profile }} -s build_type=Release -b missing
9393

94+
- name: Check if `demos/` directory existence
95+
id: check_demos_dir
96+
uses: andstor/file-existence-action@v1
97+
with:
98+
files: "demos/"
99+
94100
- name: 🏗️ Build demos for ${{ inputs.profile }}
101+
if: steps.check_demos_dir.outputs.files_exists == 'true'
95102
run: conan build demos -pr ${{ inputs.profile }} -s build_type=MinSizeRel
96103

97104
- name: 🆙 Upload package to `libhal` repo

0 commit comments

Comments
 (0)