forked from AMReX-Codes/amrex
-
Notifications
You must be signed in to change notification settings - Fork 0
29 lines (27 loc) · 807 Bytes
/
check_changes.yml
File metadata and controls
29 lines (27 loc) · 807 Bytes
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
name: Check Changes
on:
workflow_call:
outputs:
has_docs_changes:
value: ${{ jobs.check.outputs.has_docs_changes }}
has_non_docs_changes:
value: ${{ jobs.check.outputs.has_non_docs_changes }}
jobs:
check:
runs-on: ubuntu-latest
outputs:
has_non_docs_changes: ${{ steps.set-output.outputs.has_non_docs_changes }}
steps:
- uses: actions/checkout@v4
- uses: dorny/paths-filter@v3
id: changes
with:
filters: |
docs:
- 'Docs/**'
others:
- '!Docs/**'
- id: set-output
run: |
echo "has_docs_changes=${{ steps.changes.outputs.docs }}" >> $GITHUB_OUTPUT
echo "has_non_docs_changes=${{ steps.changes.outputs.others }}" >> $GITHUB_OUTPUT