Skip to content

Commit 1c6f367

Browse files
committed
Update action files
1 parent 013064d commit 1c6f367

File tree

2 files changed

+54
-0
lines changed

2 files changed

+54
-0
lines changed

Dockerfile

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# File generated by github.com/posener/goaction. DO NOT EDIT.
2+
3+
4+
FROM golang:1.14.2-alpine3.11
5+
RUN apk add git
6+
7+
COPY . /home/src
8+
WORKDIR /home/src
9+
RUN go build -o /bin/action ./
10+
11+
ENTRYPOINT [ "/bin/action" ]

action.yml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
# File generated by github.com/posener/goaction. DO NOT EDIT.
2+
3+
name: fetch-gh-release-binary
4+
description: |
5+
GitHub Action to download binaries from GitHub releases and make them
6+
available for use in later steps.
7+
inputs:
8+
owner:
9+
description: "Owner of the repo with the release asset"
10+
required: false
11+
repo:
12+
description: "Repo with the release asset"
13+
required: false
14+
version:
15+
description: "Version of the release asset to fetch, if unset, use latest"
16+
required: false
17+
asset-pattern:
18+
description: "Pattern the asset name must match"
19+
required: false
20+
install-path:
21+
description: "Where to put the installed binary"
22+
required: false
23+
verbose:
24+
default: false
25+
description: "whether to enable verbose logging"
26+
required: false
27+
GITHUB_TOKEN:
28+
required: false
29+
runs:
30+
using: docker
31+
image: Dockerfile
32+
env:
33+
GITHUB_TOKEN: "${{ inputs.GITHUB_TOKEN }}"
34+
args:
35+
- "-owner=${{ inputs.owner }}"
36+
- "-repo=${{ inputs.repo }}"
37+
- "-version=${{ inputs.version }}"
38+
- "-asset-pattern=${{ inputs.asset-pattern }}"
39+
- "-install-path=${{ inputs.install-path }}"
40+
- "-verbose=${{ inputs.verbose }}"
41+
branding:
42+
icon: arrow-down-circle
43+
color: orange

0 commit comments

Comments
 (0)