KChad commited on
Commit
82a6589
·
1 Parent(s): 0f6657d

ability to sync changes to hugging face

Browse files
Files changed (2) hide show
  1. .github/workflows/sync.yml +20 -0
  2. README.md +1 -1
.github/workflows/sync.yml ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ name: Sync to Hugging Face hub
2
+ on:
3
+ push:
4
+ branches: [main]
5
+ workflow_dispatch:
6
+
7
+ jobs:
8
+ sync-to-hub:
9
+ runs-on: ubuntu-latest
10
+ steps:
11
+ - uses: actions/checkout@v3
12
+ with:
13
+ fetch-depth: 0
14
+ lfs: true
15
+ - name: Push to hub
16
+ env:
17
+ HF_TOKEN: ${{ secrets.HF_TOKEN }}
18
+ run: |
19
+ # Change 'KumarChad' and 'Prompt_Injection_env' if your names are different!
20
+ git push --force https://KumarChad:$HF_TOKEN@huggingface.co/spaces/KumarChad/Prompt_Injection_env main
README.md CHANGED
@@ -1,5 +1,5 @@
1
  ---
2
- title: Echo Environment Server
3
  emoji: 🔊
4
  colorFrom: blue
5
  colorTo: green
 
1
  ---
2
+ title: Prompt Injection Env Server
3
  emoji: 🔊
4
  colorFrom: blue
5
  colorTo: green