Skip to content

Commit 2252eda

Browse files
committed
更新工作流名称以反映数据集同步至 Hugging Face 的功能,并修正条件判断以确保 HF_TOKEN 的正确使用
1 parent a690b08 commit 2252eda

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/main.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: 更新数据集
1+
name: 更新数据集并同步至huggingface
22

33
on:
44
schedule:
@@ -47,7 +47,7 @@ jobs:
4747
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4848

4949
- name: 同步到 Hugging Face Space (可选)
50-
if: ${{ secrets.HF_TOKEN != '' }}
50+
if: env.HF_TOKEN != ''
5151
env:
5252
HF_TOKEN: ${{ secrets.HF_TOKEN }}
5353
run: |

0 commit comments

Comments
 (0)