-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathaction.yml
More file actions
39 lines (39 loc) · 1.38 KB
/
action.yml
File metadata and controls
39 lines (39 loc) · 1.38 KB
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
name: "github-action-lock-branch"
description: "Github Action to Lock or Unlock a Branch"
inputs:
owner:
description: "The owner of repository to Lock or Unlock. Inferred from current repository if not provided."
required: false
repository:
description: "The repository to Lock or Unlock. Inferred from current repository if not provided."
required: false
branch:
description: "The Branch to Lock or Unlock. Inferred from current branch if not provided."
required: true
lock:
description: "To Lock or Unlock (true or false)"
required: true
token:
description: "The Personal Access Token (PAT) that gives access to Lock/Unlock the branch."
required: true
outputs:
repository:
description: "The repository locked or unlocked"
branch:
description: "The branch locked or unlocked."
locked:
description: "True if the branch is locked. False if the branch is unlocked."
unlocked:
description: "True if the branch is unlocked. False if the branch is locked."
changed:
description: "True if the branch was changed. False if it remained the same."
success:
description: "True if the change succeeded or no change happened. False if a failure occured."
failure:
description: "True if the change did not succeed. False if no failure occured."
runs:
using: "node20"
main: "dist/index.js"
branding:
icon: "lock"
color: "red"