Skip to content

create_feedstocks #67809

create_feedstocks

create_feedstocks #67809

name: create_feedstocks
on:
schedule:
- cron: '*/10 * * * *'
workflow_dispatch: null
jobs:
create_feedstocks:
name: create feedstocks
runs-on: ubuntu-latest
steps:
- name: checkout code
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
with:
repository: conda-forge/staged-recipes
token: ${{ secrets.CF_ADMIN_GITHUB_TOKEN }}
- name: prevent multiple jobs running in parallel
id: conversion_lock
uses: beckermr/turnstyle-python@d50fd7e1de14639af00d8dc8e0f60176a99153d9 # v2
with:
abort-after-seconds: 3
poll-interval-seconds: 2
github-token: ${{ secrets.CF_ADMIN_GITHUB_TOKEN }}
continue-on-error: true
- name: commit any changes upon checkout
run: |
git config --global user.email "chrisburr73+conda-forge-admin@gmail.com"
git config --global user.name "conda-forge-admin"
git add *
git commit -am "make sure we have no windows line endings" || exit 0
for i in `seq 1 5`; do
git pull
git push
done
- name: Run feedstock creation
# outcome is evaluated before continue-on-error above
if: ${{ steps.conversion_lock.outcome == 'success' }}
run: |
# Avoid wasting CI time if there are no recipes ready for conversion
if [ "$(ls recipes/*/meta.yaml | grep -v recipes/example/meta.yaml --count)" -eq 0 ]; then
echo "No new recipes found, exiting..."
exit 0
fi
echo "Creating feedstocks from the recipe(s)."
source ./.github/workflows/scripts/create_feedstocks
env:
STAGING_BINSTAR_TOKEN: ${{ secrets.STAGING_BINSTAR_TOKEN }}
GH_TOKEN: ${{ secrets.CF_ADMIN_GITHUB_TOKEN }}
TRAVIS_TOKEN: ${{ secrets.CF_ADMIN_TRAVIS_TOKEN }}
AZURE_TOKEN: ${{ secrets.AZURE_TOKEN }}