Skip to content

chore: Update test.yml to handle changes in client/apps/ directory #7

chore: Update test.yml to handle changes in client/apps/ directory

chore: Update test.yml to handle changes in client/apps/ directory #7

Workflow file for this run

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 }}"