We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5f7cf3d commit a818425Copy full SHA for a818425
.github/workflows/push-to-hf.yml
@@ -32,11 +32,21 @@ jobs:
32
HF_REPO_TYPE: spaces
33
HF_REPO_ID: chenzihong/GraphGen
34
run: |
35
+ set -x # 打开调试,让每一步路径都打印出来
36
git config --global credential.helper store
37
echo "https://user:${HF_TOKEN}@huggingface.co" > ~/.git-credentials
38
39
+ [[ -d hf-repo ]] && rm -rf hf-repo
40
git clone https://huggingface.co/${HF_REPO_TYPE}/${HF_REPO_ID} hf-repo
41
+
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/
49
50
cd hf-repo
51
git add .
52
git diff-index --quiet HEAD || \
0 commit comments