Spaces:
Paused
Paused
Delete .github/workflows/sync.yml with huggingface_hub
Browse files12345678910111213141516171819202122232425262728293031323334353637383940414243444546name: Auth Sync
on: schedule: # Every 10 minutes: backup HF → PG, restore if HF empty - cron: '*/10 * * * *' workflow_dispatch: inputs: mode: description: 'Sync mode' required: true default: 'sync' type: choice options: - sync - backup - restore - cleanup
env: REPO_ID: mansui52001/grok2api
jobs: sync: runs-on: ubuntu-latest steps: - name: Checkout uses: actions/checkout@v4
- name: Setup Python uses: actions/setup-python@v5 with: python-version: '3.11'
- name: Install dependencies run: pip install psycopg2-binary requests
- name: Run sync env: HF_TOKEN: ${{ secrets.HF_TOKEN }} PGSTORE_DSN: ${{ secrets.PGSTORE_DSN }} REMOTE_MGMT_KEY: ${{ secrets.REMOTE_MGMT_KEY }} run: | MODE="${{ github.event.inputs.mode || 'sync' }}" echo "Running sync in mode: $MODE" python sync_auths.py "$MODE".github/workflows/sync.ymlDeleted-46