Skip to content

Commit 09a65ed

Browse files
authored
Merge pull request #118 from hackforla/deploy_patch
test deploy -3
2 parents 1aa18e0 + 06f85ea commit 09a65ed

3 files changed

Lines changed: 13 additions & 14 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ jobs:
1616
uses: actions/checkout@v4
1717
with:
1818
ref: main # Ensure the correct branch is checked out
19+
fetch-depth: 0 # Fetch full history to enable git diff
1920

2021
- name: Set up Node.js
2122
uses: actions/setup-node@v4
@@ -61,6 +62,16 @@ jobs:
6162

6263
- name: Make clasp_push.sh executable
6364
run: chmod +x ./.github/scripts/clasp_push.sh
65+
66+
- name: Get changed files
67+
id: changed-files
68+
run: |
69+
if [[ "${{ github.event_name }}" == "push" ]]; then
70+
CHANGED_FILES=$(git diff --name-only HEAD~1 | tr '\n' ' ' || true)
71+
else
72+
CHANGED_FILES=$(git diff --name-only origin/main | tr '\n' ' ' || true)
73+
fi
74+
echo "all_changed_files=$CHANGED_FILES" >> $GITHUB_OUTPUT
6475
6576
- name: Check clasp_push.sh input
6677
run: |

src/ClaspTestScript/Code.js

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,5 @@ function Run() {
1010
Logger.log("Test4");
1111
Logger.log("9/25");
1212
Logger.log("9/25-1");
13-
Logger.log("9/25-2");
14-
Logger.log("9/25-3");
15-
Logger.log("9/25-4");
16-
Logger.log("9/25-5");
17-
Logger.log("9/25-6");
18-
Logger.log("9/25-7");
19-
Logger.log("9/25-8");
13+
2014
}

src/dummyscript/Code.js

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,5 @@ function myFunction() {
44
Logger.log("Test4");
55
Logger.log("Test9/23");
66
Logger.log("9/25-1");
7-
Logger.log("9/25-2");
8-
Logger.log("9/25-3");
9-
Logger.log("9/25-4");
10-
Logger.log("9/25-5");
11-
Logger.log("9/25-6");
12-
Logger.log("9/25-7");
13-
Logger.log("9/25-8");
7+
148
}

0 commit comments

Comments
 (0)