Skip to content

Commit 414edcb

Browse files
committed
Add conditional release based on target_os
1 parent 0c37ed8 commit 414edcb

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

.github/workflows/build.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -263,6 +263,14 @@ jobs:
263263
permissions:
264264
contents: write
265265
steps:
266+
- shell: bash
267+
run: |
268+
if [ "${{ vars.target_os }}" ]; then
269+
if [ "${{ vars.target_os }}" != "${{ matrix.platform.release_for }}" ]; then
270+
echo "Skipping release for ${{ matrix.platform.release_for }}, expected ${{ vars.target_os }}"
271+
exit 0
272+
fi
273+
fi
266274
- uses: actions/checkout@v4
267275
with:
268276
fetch-depth: 0

0 commit comments

Comments
 (0)