forked from conda-forge/staged-recipes
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from conda-forge/master
Update with main
- Loading branch information
Showing
17 changed files
with
260 additions
and
598 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
name: Create feedstocks | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
schedule: | ||
- cron: '*/5 * * * *' | ||
|
||
jobs: | ||
create-feedstocks: | ||
if: github.repository == 'conda-forge/staged-recipes' | ||
name: Create feedstocks | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
|
||
- name: Prevent multiple jobs running in parallel | ||
id: conversion_lock | ||
uses: softprops/turnstyle@v1 | ||
with: | ||
abort-after-seconds: 3 | ||
poll-interval-seconds: 2 | ||
continue-on-error: true | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- 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)." | ||
git config --global user.name "GitHub Actions on github.com/conda-forge/staged-recipes" | ||
git config --global user.email "[email protected]" | ||
source ./.travis_scripts/create_feedstocks | ||
env: | ||
PROD_BINSTAR_TOKEN: ${{ secrets.PROD_BINSTAR_TOKEN }} | ||
STAGING_BINSTAR_TOKEN: ${{ secrets.STAGING_BINSTAR_TOKEN }} | ||
GH_TOKEN: ${{ secrets.GH_TOKEN }} | ||
CIRCLE_TOKEN: ${{ secrets.CIRCLE_TOKEN }} | ||
TRAVIS_TOKEN: ${{ secrets.TRAVIS_TOKEN }} | ||
GH_TRAVIS_TOKEN: ${{ secrets.GH_TRAVIS_TOKEN }} | ||
AZURE_TOKEN: ${{ secrets.AZURE_TOKEN }} | ||
DRONE_TOKEN: ${{ secrets.DRONE_TOKEN }} | ||
GH_DRONE_TOKEN: ${{ secrets.GH_DRONE_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.