-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaction.yml
30 lines (30 loc) · 1013 Bytes
/
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: 'action-pr-size-checker'
description: 'Verify pull request size without specified files by file name.'
author: 'budougumi0617'
inputs:
github_token:
description: 'GITHUB_TOKEN.'
required: true
default: ${{ github.token }}
max_added_count:
description: 'allow max pr size.'
required: true
default: '500'
filter_pattern:
# https://github.com/google/re2/wiki/Syntax
description: 'ignore file name by the regular expression syntax accepted by RE2'
required: false
runs:
using: 'composite'
steps:
- run: $GITHUB_ACTION_PATH/script.sh
shell: bash
env:
# INPUT_<VARIABLE_NAME> is not available in Composite run steps
# https://github.community/t/input-variable-name-is-not-available-in-composite-run-steps/127611
INPUT_GITHUB_TOKEN: ${{ inputs.github_token }}
INPUT_MAX_ADDED_COUNT: ${{ inputs.max_added_count }}
INPUT_FILTER_PATTERN: ${{ inputs.filter_pattern }}
branding:
icon: 'check-circle'
color: 'blue'