Avoid wasting CI time if there are no recipes to convert
@@ -8,6 +8,12 @@ jobs:
timeoutInMinutes: 60
steps:
- script: |
+ # Avoid wasting CI time if there are now recipes ready for conversion
+ if [ "$(ls recipes/*/meta.yaml | grep -v recipe/example/meta.yaml --count)" -eq 0 ]; then
+ echo "No new recipes found, exiting..."
+ exit 0
+ fi
+
echo "Creating feedstocks from the recipe(s)."
git config --global user.name "Azure Pipelines on github.com/conda-forge/staged-recipes"
