dani-ange commited on
Commit
6fcbc9a
·
unverified ·
1 Parent(s): 304a6c0

Update train-deploy.yaml

Browse files
.github/workflows/train-deploy.yaml CHANGED
@@ -31,7 +31,12 @@ jobs:
31
 
32
  - name: Download Model Repository
33
  run: huggingface-cli download danielle2003/diabeties-ml --repo-type space --local-dir diabetes-ml
34
-
 
 
 
 
 
35
  - name: Deploy to Hugging Face
36
  env:
37
  HF_TOKEN: ${{ secrets.HUGGINGFACE_API_TOKEN }}
 
31
 
32
  - name: Download Model Repository
33
  run: huggingface-cli download danielle2003/diabeties-ml --repo-type space --local-dir diabetes-ml
34
+ - name: Push `main` changes to `master`
35
+ run: |
36
+ git checkout master # Switch to master branch
37
+ git pull origin master # Ensure latest master
38
+ git merge --no-ff origin/main -m "Merging latest changes from main"
39
+ git push origin master # Push changes to master
40
  - name: Deploy to Hugging Face
41
  env:
42
  HF_TOKEN: ${{ secrets.HUGGINGFACE_API_TOKEN }}