File tree 1 file changed +12
-4
lines changed
1 file changed +12
-4
lines changed Original file line number Diff line number Diff line change @@ -14,17 +14,25 @@ jobs:
14
14
with :
15
15
fetch-depth : 2
16
16
17
- - name : Get changed folders from last commit
17
+ - name : Get widgets with changes
18
18
id : changed
19
19
run : |
20
20
folders=$(git diff --name-only HEAD^ HEAD | cut -d/ -f1 | sort -u)
21
21
echo "changed_folders<<EOF" >> $GITHUB_OUTPUT
22
22
echo "$folders" >> $GITHUB_OUTPUT
23
23
echo "EOF" >> $GITHUB_OUTPUT
24
24
25
- - name : Run command in changed folders
25
+ - name : Install CLI
26
+ run : npm i -g @vev/cli
27
+
28
+ - name : Deploy widgets
26
29
run : |
27
30
for folder in ${{ steps.changed.outputs.changed_folders }}; do
28
- echo "Running in $folder"
29
- # (cd $folder && your-command)
31
+ if [ -f "$folder/vev.json" ]; then
32
+ echo "Deploying $folder"
33
+ (cd "$folder" && vev deploy -m "${{ github.sha }}")
34
+ else
35
+ echo "Skipping $folder (no vev.json)"
36
+ fi
30
37
done
38
+
You can’t perform that action at this time.
0 commit comments