Skip to content

Commit 223d0aa

Browse files
exclude changes in non-sample directories
1 parent ef1eef8 commit 223d0aa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/deploy-changed-samples.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
- name: Identify changed samples
2323
run: |
2424
echo "Identifying changed samples..."
25-
CHANGED_SAMPLES=$(git diff --name-only HEAD HEAD^ | awk -F'/' '{print $1"/"$2}' | sort | uniq)
25+
CHANGED_SAMPLES=$(git diff --name-only HEAD origin/main | grep '^samples/' | awk -F'/' '{print $1"/"$2}' | sort | uniq)
2626
2727
- name: Install defang
2828
shell: bash

0 commit comments

Comments
 (0)