File tree Expand file tree Collapse file tree 2 files changed +10
-2
lines changed
Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Original file line number Diff line number Diff line change 6464 - name : Login to HF
6565 shell : bash
6666 run : |
67- huggingface-cli login --token ${{ secrets.HF_TOKEN }}
67+ if [ -n "${{ secrets.HF_TOKEN }}" ]; then
68+ huggingface-cli login --token ${{ secrets.HF_TOKEN }}
69+ else
70+ echo "HF_TOKEN not set, continuing without login."
71+ fi
6872 - uses : ./.github/reusable-steps/gradio-action
6973 with :
7074 script : main.py
Original file line number Diff line number Diff line change 6565 - name : Login to HF
6666 shell : bash
6767 run : |
68- huggingface-cli login --token ${{ secrets.HF_TOKEN }}
68+ if [ -n "${{ secrets.HF_TOKEN }}" ]; then
69+ huggingface-cli login --token ${{ secrets.HF_TOKEN }}
70+ else
71+ echo "HF_TOKEN not set, continuing without login."
72+ fi
6973 - name : Check if test file exists
7074 id : determine-script
7175 shell : bash
You can’t perform that action at this time.
0 commit comments