Spaces:
Running
Running
Download .github/workflows/sync-to-huggingface.yml from solidprivacy/scrub: direct link, hf CLI and curl.
- Browser
- Download file 660 Bytes
-
https://huggingface.co/spaces/solidprivacy/scrub/resolve/837652cc7856205bd6d53969b28e08f177a2c550/.github/workflows/sync-to-huggingface.yml
- Command line
-
hf download hf://spaces/solidprivacy/scrub@837652cc7856205bd6d53969b28e08f177a2c550/.github/workflows/sync-to-huggingface.yml
-
curl -L -o sync-to-huggingface.yml https://huggingface.co/spaces/solidprivacy/scrub/resolve/837652cc7856205bd6d53969b28e08f177a2c550/.github/workflows/sync-to-huggingface.yml
660 Bytes
| name: Sync to Hugging Face Space | |
| on: | |
| push: | |
| branches: | |
| - main | |
| workflow_dispatch: | |
| concurrency: | |
| group: sync-to-huggingface | |
| cancel-in-progress: true | |
| jobs: | |
| sync-to-huggingface: | |
| name: Sync GitHub main to Hugging Face Space | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - name: Push main to Hugging Face Space | |
| env: | |
| HF_TOKEN: ${{ secrets.HF_TOKEN }} | |
| run: | | |
| git remote add huggingface "https://hf:${HF_TOKEN}@huggingface.co/spaces/solidprivacy/scrub" | |
| git push --force huggingface HEAD:main | |