Skip to content

Commit e8c4b9c

Browse files
authored
Update testpr.yml
1 parent 72f279a commit e8c4b9c

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.github/workflows/testpr.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,10 +101,14 @@ jobs:
101101
id: newrecipecheck
102102
shell: bash -l {0}
103103
run: |
104+
if [ ! -d recipes ] || [ -z "$(ls -A recipes)" ]; then
105+
echo "RECIPE_CREATED=0" >> $GITHUB_OUTPUT
106+
else
107+
echo "RECIPE_CREATED=1" >> $GITHUB_OUTPUT
108+
fi
104109
# continue on error
105110
set +e
106111
test ! -d recipes
107-
echo "::set-output name=RECIPE_CREATED::${?}"
108112
- name: Build recipes for linux-64
109113
shell: bash -l {0}
110114
if: steps.newrecipecheck.outputs.RECIPE_CREATED == 1 && matrix.platform == 'linux-64'

0 commit comments

Comments
 (0)