-
Notifications
You must be signed in to change notification settings - Fork 1
37 lines (34 loc) · 1.12 KB
/
check_path.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
36
37
name: Path Check
on:
workflow_call:
outputs:
# languages
python:
description: 'indicate that a change was made on a python app or package'
value: ${{ jobs.check.outputs.python }}
# applications
taxonomy_analyzer:
description: 'indicate that a change was made on taxonomy_analyzer app or any package dependency'
value: ${{ jobs.check.outputs.taxonomy_analyzer }}
jobs:
check:
name: 'Path Changes'
runs-on: ubuntu-latest
# Map the job outputs to step outputs
outputs:
# languages
python: ${{ steps.filter.outputs.python }}
# applications
taxonomy_analyzer: ${{ steps.filter.outputs.taxonomy_analyzer }}
steps:
- name: Checkout Repo
uses: actions/checkout@v3
- name: Check Path changes
uses: dorny/paths-filter@v2
id: filter
with:
filters: .github/path-filter.yml
- name: Set outputs
run: |
echo "python=${{steps.filter.outputs.python}}" >> $GITHUB_OUTPUT
echo "taxonomy_analyzer=${{steps.filter.outputs.taxonomy_analyzer}}" >> $GITHUB_OUTPUT