-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathaction.yml
30 lines (28 loc) · 1.14 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
name: 'github-status-checks-enforce-naming-standard'
description: 'Makes sure the naming standard is followed'
author: 'Michael N. Jensen <[email protected]>'
inputs:
require_lowercase_filenames:
description: 'Whether all files must be lower case'
required: true
default: 'true'
require_lowercase_folders:
description: 'Whether all folders must be lower case'
required: true
default: 'true'
excluded_files:
description: 'JSON list of files to exclude from the checks'
required: false
default: '["README.md"]'
excluded_folders:
description: 'JSON list of folders to exclude from the checks, this should include the full path like folder1/folder2 as seen from the root of the repo'
required: false
default: '[]'
github_token:
required: false
description: 'The GITHUB_TOKEN'
runs:
using: "composite"
steps:
- run: python3 ${{ github.action_path }}/main.py "${{ inputs.require_lowercase_filenames }}" "${{ inputs.require_lowercase_folders }}" '${{ inputs.excluded_files }}' '${{ inputs.excluded_folders }}' "${{ inputs.github_token }}"
shell: bash