abdullah090809 commited on
Commit
1378d74
·
1 Parent(s): 6ee35c8

simplify CI/CD pipeline v3

Browse files
Files changed (1) hide show
  1. .github/workflows/ci-cd.yml +11 -0
.github/workflows/ci-cd.yml CHANGED
@@ -63,6 +63,17 @@ jobs:
63
  with:
64
  fetch-depth: 0
65
 
 
 
 
 
 
 
 
 
 
 
 
66
  - name: Push to Hugging Face
67
  env:
68
  HF_TOKEN: ${{ secrets.HF_TOKEN }}
 
63
  with:
64
  fetch-depth: 0
65
 
66
+ - name: Check HF_TOKEN
67
+ env:
68
+ HF_TOKEN: ${{ secrets.HF_TOKEN }}
69
+ run: |
70
+ if [ -z "$HF_TOKEN" ]; then
71
+ echo "HF_TOKEN is EMPTY"
72
+ exit 1
73
+ else
74
+ echo "HF_TOKEN is present, length: ${#HF_TOKEN}"
75
+ fi
76
+
77
  - name: Push to Hugging Face
78
  env:
79
  HF_TOKEN: ${{ secrets.HF_TOKEN }}