Spaces:
Sleeping
Sleeping
Update update_space_2.yaml
Browse files
.github/workflows/update_space_2.yaml
CHANGED
@@ -24,11 +24,12 @@ jobs:
|
|
24 |
git config --global user.email "[email protected]"
|
25 |
git config --global user.name "GitHub Actions"
|
26 |
|
27 |
-
- name: Get changed files
|
28 |
id: changed_files
|
29 |
run: |
|
30 |
git fetch origin
|
31 |
-
git diff --name-only HEAD~1 HEAD
|
|
|
32 |
|
33 |
- name: Push only changed files (loop through each space)
|
34 |
env:
|
|
|
24 |
git config --global user.email "[email protected]"
|
25 |
git config --global user.name "GitHub Actions"
|
26 |
|
27 |
+
- name: Get and show changed files
|
28 |
id: changed_files
|
29 |
run: |
|
30 |
git fetch origin
|
31 |
+
changed_files=$(git diff --name-only HEAD~1 HEAD)
|
32 |
+
echo "${changed_files}"
|
33 |
|
34 |
- name: Push only changed files (loop through each space)
|
35 |
env:
|