-
Notifications
You must be signed in to change notification settings - Fork 1
35 lines (34 loc) · 1005 Bytes
/
check-changes.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 relevant file changes
on:
workflow_call:
outputs:
only_modified:
description: 'ignored files'
value: ${{ jobs.check-changes.outputs.changed-ignored }}
jobs:
check-changes:
runs-on: ubuntu-latest
# Map the job outputs to step outputs
outputs:
changed-ignored: ${{ steps.changed-ignored.outputs.only_modified }}
steps:
- uses: actions/checkout@v4
- name: Get changed files
id: changed-files
uses: tj-actions/changed-files@v44
- name: List all changed files
run: |
echo "📝 Files changed:"
echo "----------------"
for file in ${{ steps.changed-files.outputs.all_changed_files }}; do
echo " ✅ $file"
done
echo "----------------"
- name: Check ignored file changes
id: changed-ignored
uses: tj-actions/changed-files@v44
with:
files: |
**.md
.github/**
bin/**