chore: Update test.yml to handle changes in client/apps/ directory #7
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Test | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- feat/portal-administration | |
jobs: | |
web-client-test: | |
name: test | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check Changed Files | |
run: | | |
if git diff --no-index --name-only ${{ github.ref }}...${{ github.head_ref }} | grep -q "^client/apps/"; then | |
echo "Files in client/apps/ have changed" | |
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 Main | |
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 | |
echo "Current branch: ${{ github.ref }}" | |
echo "Base branch: ${{ github.base_ref }}" | |
echo "Head branch: ${{ github.head_ref }}" |