generated from unfor19/replacer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaction.yml
71 lines (70 loc) · 1.88 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
name: "replacer-action"
branding:
icon: "align-justify"
color: "white"
description: "Auto-update README.md according to soucre code"
inputs:
src-file-path:
description: "The file to get the text from"
required: true
default: ""
dst-file-path:
description: "The file to update, defaults to README.md"
required: true
default: "README.md"
start-value:
description: "The tag before the text block"
required: true
default: "<!-- replacer_start -->"
end-value:
description: "The tag after the text block"
required: true
default: "<!-- replacer_end -->"
git-user-name:
description: "Name of the user that will appear as the actor"
required: false
default: "GitHub Actions"
git-user-email:
description: "Email address of the user that will appear as the actor"
required: false
default: "githubactions@meirg.co.il"
git-commit-msg:
description: "Commit message"
required: false
default: "Updated by GitHub Actions"
git-skip-commit:
description: "Skip Git commit"
required: false
default: "false"
git-skip-push:
description: "Skip Git push"
required: false
default: "false"
create-backup:
description: "Create a backup file, for example README.md.bak"
required: false
default: "true"
runs:
using: "docker"
image: "Dockerfile"
args:
- --src_file_path
- ${{ inputs.src-file-path }}
- --dst_file_path
- ${{ inputs.dst-file-path }}
- --start_value
- ${{ inputs.start-value }}
- --end_value
- ${{ inputs.end-value }}
- --git_user_name
- ${{ inputs.git-user-name }}
- --git_user_email
- ${{ inputs.git-user-email }}
- --git_commit_msg
- ${{ inputs.git-commit-msg }}
- --git_skip_commit
- ${{ inputs.git-skip-commit }}
- --git_skip_push
- ${{ inputs.git-skip-push }}
- --create_backup
- ${{ inputs.create-backup }}