Skip to content

Update main.yml

Update main.yml #3

Workflow file for this run

name: Sync to Hugging Face hub
on:
push:
branches: [main]
workflow_dispatch:
jobs:
sync-to-hub:
runs-on: ubuntu-latest
steps:

Check failure on line 10 in .github/workflows/main.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/main.yml

Invalid workflow file

You have an error in your yaml syntax on line 10
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Add remote
env:
HF: ${{secrets.HF}}
run: git remote add space https://huggingface.co/spaces/kumarajit/mlops-coursera
- name: Push to hub
env:
HF: ${{secrets.HF}}
run: git push --force https://huggingface.co/spaces/kumarajit/mlops-coursera main