generated from actions-cool/action-js-template
-
Notifications
You must be signed in to change notification settings - Fork 7
/
action.yml
36 lines (32 loc) · 981 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
31
32
33
34
35
36
# https://docs.github.com/en/actions/creating-actions/metadata-syntax-for-github-actions
name: 'Check User Permission'
description: 'A GitHub Action to check user permission of the current repository.'
author: 'xrkffgg'
# https://actions-cool.github.io/github-action-branding/
branding:
icon: 'user-x'
color: 'purple'
inputs:
token:
description: Secret GitHub API token to use for making API requests.
default: ${{ github.token }}
required: true
username:
description: Test username in this repo
require:
description: Test whether the user meets the required permission
required: false
check-bot:
description: Check whether the user is a bot
check-contributor:
description: Check whether the user is contributor
outputs:
user-permission:
description: User permission
require-result:
description: The result of require
check-result:
description: The result of check
runs:
using: 'node20'
main: 'dist/index.js'