Skip to content

Model Zoo Fetch and Generate #114

Model Zoo Fetch and Generate

Model Zoo Fetch and Generate #114

Workflow file for this run

# This is a basic workflow to help you get started with Actions
name: Model Zoo Fetch and Generate
# Controls when the workflow will run
on:
# Triggers the workflow on push or pull request events but only for the "master" branch
schedule:
- cron: "0 0 * * 0"
push:
branches:
- master
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
build:
# The type of runner that the job will run on
runs-on: ubuntu-latest
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v3
- name: Install MONAI
run: pip install git+https://github.com/Project-MONAI/MONAI#egg=monai
- name: Install jinja2
run: pip install Jinja2
- name: Install Markdown
run: pip install Markdown
- name: Install BeautifulSoup4
run: pip install beautifulsoup4
- name: Generate Model Zoo HTML
run: python .github/workflows/fetch.py
- name: Commit files
run: |
git config --local user.email "github-actions[bot]@users.noreply.github.com"
git config --local user.name "github-actions[bot]"
git add .
git commit -m "Rebuild Model Zoo"
- name: Push changes
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.MODEL_ZOO_DIST }}
branch: dist
force: true