Spaces:
Sleeping
Sleeping
added fetch-depth to yaml for actions
Browse files
.github/workflows/deploy.yaml
CHANGED
@@ -1,4 +1,4 @@
|
|
1 |
-
name: Deploy to Hugging
|
2 |
|
3 |
on:
|
4 |
push:
|
@@ -10,12 +10,14 @@ jobs:
|
|
10 |
|
11 |
steps:
|
12 |
- uses: actions/checkout@v4 # pulls repo
|
|
|
|
|
13 |
|
14 |
- name: Push repo to HF Space
|
15 |
env:
|
16 |
HF_TOKEN: ${{ secrets.HF_TOKEN }} # GitHub secret with write scope
|
17 |
run: |
|
18 |
-
git config --global user.email "ci@github"
|
19 |
git config --global user.name "github-ci"
|
20 |
|
21 |
# add (or update) the remote exactly once
|
|
|
1 |
+
name: Deploy to Hugging Face Space
|
2 |
|
3 |
on:
|
4 |
push:
|
|
|
10 |
|
11 |
steps:
|
12 |
- uses: actions/checkout@v4 # pulls repo
|
13 |
+
with:
|
14 |
+
fetch-depth: 0
|
15 |
|
16 |
- name: Push repo to HF Space
|
17 |
env:
|
18 |
HF_TOKEN: ${{ secrets.HF_TOKEN }} # GitHub secret with write scope
|
19 |
run: |
|
20 |
+
git config --global user.email "ci@github.com"
|
21 |
git config --global user.name "github-ci"
|
22 |
|
23 |
# add (or update) the remote exactly once
|