Skip to content

build: sync env

build: sync env #9

Workflow file for this run

name: Sync endpoint
on:
push:
branches:
- sync
jobs:
sync-to-hub:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: '3.10'
cache: 'pip'
- name: Download endpoint
uses: actions/download-artifact@v3

Check failure on line 17 in .github/workflows/sync.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/sync.yml

Invalid workflow file

You have an error in your yaml syntax on line 17
with:
name: endpoint
- name: run
if: success() || failure()
env:
HF_TOKEN: ${{ secrets.HF_TOKEN }}
ENDPOINTS: ${{ vars.ENDPOINTS }}
run: cd sync && pip install huggingface_hub && python sync.py && cat endpoint.txt
- name: Upload endpoint
uses: actions/upload-artifact@v3
with:
name: endpoint
path: sync/endpoint.txt