We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 223d0aa commit c3e5f20Copy full SHA for c3e5f20
.github/workflows/deploy-changed-samples.yml
@@ -16,13 +16,15 @@ jobs:
16
- name: Checkout code
17
uses: actions/checkout@v3
18
with:
19
- # Fetch two to see changes in current commit
20
- fetch-depth: 2
+ fetch-depth: 1
+
21
+ - name: Fetch main branch
22
+ run: git fetch origin main:main # Fetch the main branch reference for comparison
23
24
- name: Identify changed samples
25
run: |
26
echo "Identifying changed samples..."
- CHANGED_SAMPLES=$(git diff --name-only HEAD origin/main | grep '^samples/' | awk -F'/' '{print $1"/"$2}' | sort | uniq)
27
+ CHANGED_SAMPLES=$(git diff --name-only HEAD main | grep '^samples/' | awk -F'/' '{print $1"/"$2}' | sort | uniq)
28
29
- name: Install defang
30
shell: bash
0 commit comments