Skip to content

Update config files of dints with TensorRT #578

Update config files of dints with TensorRT

Update config files of dints with TensorRT #578

name: update-model-info

Check failure on line 1 in .github/workflows/update-model-info.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/update-model-info.yml

Invalid workflow file

`schedule` accepts a list of one or more maps with the `cron` key set
on:
schedule:
# - cron: "0 10 * * *" # 10:00, everyday
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
build:
if: github.ref == 'refs/heads/dev'
permissions: write-all
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 2
- name: update model info
run: |
python -m pip install -r requirements-dev.txt
changes=$(git diff --name-only HEAD^..HEAD -- models)
if [ ! -z "$changes" ]; then
python $(pwd)/ci/update_model_info_deparate.py --f "$changes"
fi
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
username: ${{ secrets.UPDATE_MODEL_USERNAME }}
email: ${{ secrets.UPDATE_MODEL_EMAIL }}