generated from actions/javascript-action
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaction.yml
28 lines (28 loc) · 815 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
name: 'ToggleBranchProtection'
description: 'Toggle protection for a branch on or off'
inputs:
owner:
description: 'GitHub user or org'
required: true
repo:
description: 'GitHub repository'
required: true
branch:
description: 'branch for toggling protection, defaults to master'
required: false
default: 'master'
GITHUB_TOKEN:
description: 'GitHub token with sufficient rights, for toggling protection'
required: true
on:
description: 'Enable branch protection with passed JSON of protection rules'
required: false
off:
description: 'Disable branch protection'
required: false
outputs:
on: # output will be available to future steps
description: 'The stringified protection rules for re-enabling'
runs:
using: 'node12'
main: 'dist/index.js'