Skip to content

Commit 0e55f77

Browse files
committed
Try to install CLI in action
1 parent c2a7753 commit 0e55f77

File tree

1 file changed

+12
-4
lines changed

1 file changed

+12
-4
lines changed

.github/workflows/deploy-to-merge-to-main.yml

+12-4
Original file line numberDiff line numberDiff line change
@@ -14,17 +14,25 @@ jobs:
1414
with:
1515
fetch-depth: 2
1616

17-
- name: Get changed folders from last commit
17+
- name: Get widgets with changes
1818
id: changed
1919
run: |
2020
folders=$(git diff --name-only HEAD^ HEAD | cut -d/ -f1 | sort -u)
2121
echo "changed_folders<<EOF" >> $GITHUB_OUTPUT
2222
echo "$folders" >> $GITHUB_OUTPUT
2323
echo "EOF" >> $GITHUB_OUTPUT
2424
25-
- name: Run command in changed folders
25+
- name: Install CLI
26+
run: npm i -g @vev/cli
27+
28+
- name: Deploy widgets
2629
run: |
2730
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
3037
done
38+

0 commit comments

Comments
 (0)