Skip to content

Commit

Permalink
Merge pull request #80 from fakerybakery/sync-hf
Browse files Browse the repository at this point in the history
Sync to Hugging Face Space
  • Loading branch information
SWivid authored Oct 15, 2024
2 parents 0297be2 + f534c93 commit a8b455f
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/sync-hf.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Sync to HF Space

on:
push:
branches:
- main

jobs:
trigger_curl:
runs-on: ubuntu-latest

steps:
- name: Send cURL POST request
run: |
curl -X POST https://mrfakename-sync-f5.hf.space/gradio_api/call/refresh \
-s \
-H "Content-Type: application/json" \
-d "{\"data\": [\"${{ secrets.REFRESH_PASSWORD }}\"]}"

0 comments on commit a8b455f

Please sign in to comment.