-
Notifications
You must be signed in to change notification settings - Fork 6
/
action.yml
31 lines (28 loc) · 1.05 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
name: 'Set-Branch-Protection'
description: 'Custom GitHub action based on Node.js to automatically apply branch protection rules.'
author: 'Venkatesh Subramanian <[email protected]>'
inputs:
token:
description: 'This should have Admin privileges or should be an Org Level Owner'
required: true
org:
description: 'The name of your GitHub organization'
required: true
rulesPath:
description: 'The path of the rules json file for branch protection'
default: './rules.json'
required: true
includedReposPath:
description: 'Path of the file with repos (newline) to be included for optionally applying branch protection. If not provided, all repos will be considered.'
excludedReposPath:
description: 'Path of the file with repos (newline separated) to be excluded for branch protection. This is optional.'
action:
description: 'Set or Add or Delete Branch protection. Default is set.'
default: 'set'
required: true
runs:
using: 'node16'
main: 'dist/index.js'
branding:
icon: 'activity'
color: 'blue'