-
Notifications
You must be signed in to change notification settings - Fork 0
/
action.yaml
58 lines (55 loc) · 1.37 KB
/
action.yaml
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
name: "Update Homebrew Formula"
description: "Update a Homebrew formula with a GitHub release."
inputs:
repo:
description: |
The Project main repository
(e.g. example/project)
required: true
tap:
description: |
The Homebrew tap repository for update formula
(e.g. example/homebrew-hello)
required: true
formula:
description: |
The path to the formula in the tap repository
(e.g. Formula/hello.rb)
required: true
download-url:
description: |
The download file url of release
(e.g. "https://github.com/example/hello/releases/download/1.0.0/hello.tar.gz")
required: true
sha256:
description: |
The sha 256 of release file
(e.g. "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx")
required: true
commit-message:
description: |
The message of the commit updating the formula.
"Update {repository name} to #{tag name}"
(e.g. "Update hello to 1.0.0")
required: false
runs:
using: "docker"
image: "Dockerfile"
args:
[
--repository,
"${{ inputs.repo }}",
--tap,
"${{ inputs.tap }}",
--formula,
"${{ inputs.formula }}",
--download-url,
"${{ inputs.download-url }}",
--sha256,
"${{ inputs.sha256 }}",
--commit-message,
"${{ inputs.commit-message }}",
]
branding:
icon: "arrow-up"
color: "yellow"