-
Notifications
You must be signed in to change notification settings - Fork 1
35 lines (30 loc) · 950 Bytes
/
test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
name: Check Changes in client/apps
on:
pull_request:
branches:
- "*"
push:
branches:
- "*"
jobs:
check-changes:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up Git
run: git fetch origin
- name: Check for changes in /client/apps
id: check_changes
run: |
# Check for changes in the /client/apps folder
if git diff --name-only ${{ github.base_ref }}...${{ github.head_ref }} | grep -q "^client/apps/"; then
echo "Changes detected in client/apps/"
echo "::set-output name=changes_detected::true"
else
echo "No changes detected in client/apps/"
echo "::set-output name=changes_detected::false"
fi
- name: Output result
run: |
echo "Changes in client/apps: ${{ steps.check_changes.outputs.changes_detected }}"