generated from actions/typescript-action
-
Notifications
You must be signed in to change notification settings - Fork 1
/
action.yml
47 lines (44 loc) · 1.7 KB
/
action.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
44
45
46
47
name: 'File Changes'
description: 'A customisable filter that uses git (or a custom command) to get changed files based on rules and sets them to outputs'
author: 'Jethro Muller'
branding:
color: blue
icon: file-text
inputs:
base-branch:
required: false
description: 'The name of the branch being compared to. Uses $GITHUB_BASE_REF if not set'
default: ${{ github.base_ref }}
command:
required: false
description: 'The command to run to get the file changes can contain {globs} and
{branchName} to specify replacements. {globs} uses glob-template to prepare the globs before replacement.'
default: 'git diff --name-status --no-renames {branchName} {globs}'
glob-template:
required: false
description: 'How to format the globs received'
default: "'{glob}'"
filter-patterns:
required: false
description: >-
A map with keys ADDED, CHANGED, and DELETED as keys and a pattern object ({"pattern": "<pattern>"}) as a value.
Any defined keys will be kept, others discarded. Special characters should be escaped.
The matching is done by checking if the file change starts with the pattern.
default: |
ADDED: {"pattern": "A\t"}
CHANGED: {"pattern": "M\t"}
DELETED: {"pattern": "D\t"}
change-map:
required: true
description: >-
A multi-line map of changes to find.
eg. python_files: {"globs": "*.py", "separateDeleted": false}
requirements: {"globs": "requirements/*.txt"}
py_and_requirements: {"globs": ["requirements/*.txt", "*.py"]}
The final boolean determines if we separate out floats
outputs:
any-matches:
description: 'Any glob matches found'
runs:
using: 'node20'
main: 'dist/index.js'