shivansh-ka commited on
Commit
9e495fd
1 Parent(s): c521566
.github/workflows/hf_pull.yml ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ name: Check file size
2
+ on: # or directly `on: [push]` to run the action on every push on any branch
3
+ pull_request:
4
+ branches: [main]
5
+
6
+ # to run this workflow manually from the Actions tab
7
+ workflow_dispatch:
8
+
9
+ jobs:
10
+ sync-to-hub:
11
+ runs-on: ubuntu-latest
12
+ steps:
13
+ - name: Check large files
14
+ uses: ActionsDesk/lfs-warning@v2.0
15
+ with:
16
+ filesizelimit: 10485760
.github/workflows/hf_push.yml CHANGED
@@ -16,5 +16,4 @@ jobs:
16
  - name: Push to hub
17
  env:
18
  HF_TOKEN: ${{ secrets.HF_TOKEN }}
19
- run: git pull https://shivansh-ka:$HF_TOKEN@huggingface.co/spaces/shivansh-ka/Toxic-Comment-Classifier main
20
  run: git push https://shivansh-ka:$HF_TOKEN@huggingface.co/spaces/shivansh-ka/Toxic-Comment-Classifier main
 
16
  - name: Push to hub
17
  env:
18
  HF_TOKEN: ${{ secrets.HF_TOKEN }}
 
19
  run: git push https://shivansh-ka:$HF_TOKEN@huggingface.co/spaces/shivansh-ka/Toxic-Comment-Classifier main