Skip to content

Commit 447b42a

Browse files
ci: test pusg-to-hf
1 parent a818425 commit 447b42a

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

.github/workflows/push-to-hf.yml

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -32,20 +32,13 @@ jobs:
3232
HF_REPO_TYPE: spaces
3333
HF_REPO_ID: chenzihong/GraphGen
3434
run: |
35-
set -x # 打开调试,让每一步路径都打印出来
3635
git config --global credential.helper store
3736
echo "https://user:${HF_TOKEN}@huggingface.co" > ~/.git-credentials
3837
3938
[[ -d hf-repo ]] && rm -rf hf-repo
4039
git clone https://huggingface.co/${HF_REPO_TYPE}/${HF_REPO_ID} hf-repo
4140
42-
# 打印当前目录和 hf-repo 目录
43-
pwd
44-
ls -la
45-
ls -la hf-repo
46-
47-
# 关键:确保“源”是当前仓库,“目标”是 hf-repo
48-
rsync -a --delete --exclude='.git' ./ hf-repo/
41+
rsync -a --delete --exclude='.git' ./ hf-repo/ || true
4942
5043
cd hf-repo
5144
git add .

0 commit comments

Comments
 (0)