kenichi9999999 commited on
Commit
cacc209
·
1 Parent(s): ce9b9cb
Files changed (1) hide show
  1. .github/workflows/test.yml +5 -4
.github/workflows/test.yml CHANGED
@@ -9,8 +9,10 @@ jobs:
9
  deploy:
10
  runs-on: ubuntu-latest
11
  steps:
12
- - name: GitHubリポジトリをチェックアウト
13
  uses: actions/checkout@v3
 
 
14
 
15
  - name: Gitを設定
16
  run: |
@@ -19,9 +21,8 @@ jobs:
19
 
20
  - name: Hugging Faceリモートを追加
21
  run: |
22
- git remote add hf https://kenken999:${{ secrets.HF_TOKEN }}@huggingface.co/spaces/kenken999/github
23
- git fetch --all
24
- git branch --set-upstream-to=hf/main main
25
 
26
  - name: Hugging Faceにプッシュ
27
  run: |
 
9
  deploy:
10
  runs-on: ubuntu-latest
11
  steps:
12
+ - name: GitHubリポジトリをチェックアウト(完全クローン)
13
  uses: actions/checkout@v3
14
+ with:
15
+ fetch-depth: 0 # これが重要!完全履歴を取得する
16
 
17
  - name: Gitを設定
18
  run: |
 
21
 
22
  - name: Hugging Faceリモートを追加
23
  run: |
24
+ git remote add hf https://user:${{ secrets.HF_TOKEN }}@huggingface.co/spaces/kenken999/github
25
+ git fetch hf
 
26
 
27
  - name: Hugging Faceにプッシュ
28
  run: |