-
Notifications
You must be signed in to change notification settings - Fork 1
43 lines (39 loc) · 1.29 KB
/
get-changed-files.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
38
39
40
41
42
43
---
on:
workflow_call:
outputs:
changed-files:
description: "Changed file JSON output from dorny/paths-filter"
value: ${{ jobs.get-changed-files.outputs.changed-files }}
jobs:
get-changed-files:
name: Get Changed Files
runs-on: ubuntu-24.04
permissions:
contents: read # for dorny/paths-filter to fetch a list of changed files
pull-requests: read # for dorny/paths-filter to read pull requests
outputs:
changed-files: ${{ toJSON(steps.changed-files.outputs) }}
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Get Changed Files
id: changed-files
uses: dorny/paths-filter@de90cc6fb38fc0963ad72b210f1f284cd68cea36 # v3.0.2
with:
token: ${{ github.token }}
list-files: escape
filters: |
repo:
- added|modified:
- '**'
deleted:
- deleted:
- '**'
pre-commit:
- added|modified|deleted:
- .pre-commit-hooks/**
- .pre-commit-config.y?(a)ml
- .pylintrc
- pyproject.toml
- name: Echo Changed Files Output
run: echo "${{ toJSON(steps.changed-files.outputs) }}"