-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
action.yml
executable file
·75 lines (62 loc) · 1.75 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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
# required
name: 'markdown-safe-link-action'
author: 'Mark Battistella'
description: 'Check if the links pass Google Safe Web'
# styles
branding:
icon: 'shield'
color: 'red'
# user inputs
inputs:
directory:
description: 'The directory to scan md files'
required: true
default: '.'
api:
description: 'Your Safe Browsing API key'
required: true
replace:
description: 'Text to replace the bad urls with'
required: true
default: '[REDACTED]'
github_token:
description: 'Token for the repo - $\{{ secrets.GITHUB_TOKEN }}'
required: true
author_email:
description: 'Email used to configure user.email in `git config`.'
required: false
default: 'github-actions[bot]@users.noreply.github.com'
author_name:
description: 'Name used to configure user.name in `git config`.'
required: false
default: 'github-actions[bot]'
message:
description: 'Commit message.'
required: false
branch:
description: 'Destination branch to push changes'
required: false
default: 'main'
empty:
description: 'Allow empty commit'
required: false
default: false
force:
description: 'Determines if force push is used'
required: false
default: false
# for Docker
runs:
using: 'docker'
image: 'Dockerfile'
args:
- ${{ inputs.directory }}
- ${{ inputs.api }}
- ${{ inputs.replace }}
- ${{ inputs.github_token }}
- ${{ inputs.author_email }}
- ${{ inputs.author_name }}
- ${{ inputs.message }}
- ${{ inputs.branch }}
- ${{ inputs.empty }}
- ${{ inputs.force }}