forked from frgfm/validate-python-headers
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaction.yml
51 lines (48 loc) · 1.22 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
48
49
50
51
name: validate-python-headers
author: frgfm
description: Validate the copyright & license references in the headers of your Python files
branding:
icon: check-square
color: blue
inputs:
owner:
description: 'Name of the copyright owner'
required: true
starting-year:
description: 'Starting year of your project'
required: true
license:
# https://spdx.org/licenses/
description: 'License of your project'
required: false
default: null
folders:
description: 'Folders to inspect'
required: false
default: '.'
ignore-files:
description: 'Files to ignore'
required: false
default: '__init__.py'
ignore-folders:
description: 'Folders to ignore'
required: false
default: '.github/'
license-notice:
description: 'Custom license notice to be used if license is null'
required: false
default: null
outputs:
issues: # id of output
description: 'The list of files with header issues'
runs:
using: 'docker'
image: 'Dockerfile'
args:
- ${{ inputs.owner }}
- ${{ inputs.starting-year }}
- ${{ inputs.license }}
- ${{ inputs.folders }}
- ${{ inputs.ignore-files }}
- ${{ inputs.ignore-folders }}
- ${{ inputs.license-notice }}