Skip to content

Commit

Permalink
chore: Update test.yml to handle changes in client/apps/ directory
Browse files Browse the repository at this point in the history
  • Loading branch information
Noggling committed Sep 11, 2024
1 parent 4a118a7 commit 1cb663a
Showing 1 changed file with 16 additions and 3 deletions.
19 changes: 16 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,19 @@ jobs:
else
echo "No files in client/apps/ have changed"
fi
echo "Current branch: ${{ github.ref }}"
echo "Base branch: ${{ github.base_ref }}"
echo "Head branch: ${{ github.head_ref }}"
- name: Check Changed Files Main2
run: |
if git diff --no-index --name-only ${{ github.ref }}...main | grep -q "/client/apps/"; then
echo "Files in client/apps/ have changed"
else
echo "No files in client/apps/ have changed"
fi
- name: Check Changed Files Main3
run: |
if git diff --no-index --name-only ${{ github.ref }}...main | grep -q "^/client/apps/"; then
echo "Files in client/apps/ have changed"
else
echo "No files in client/apps/ have changed"
fi

0 comments on commit 1cb663a

Please sign in to comment.