Skip to content

Commit 74bf7fa

Browse files
author
GitHub Actions
committed
Use binary from release
1 parent 5a957cd commit 74bf7fa

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

action.yml

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,18 +27,23 @@ inputs:
2727
runs:
2828
using: "composite"
2929
steps:
30-
- name: Check out repository
31-
uses: actions/checkout@v2
32-
with:
33-
repository: charlieegan3/fetch-gh-release-binary
3430
- run: |
35-
go run main.go \
31+
VERSION=0.3.1
32+
ASSET_NAME=fetch-gh-release-binary_0.3.1_Linux_amd64.tar.gz
33+
BINARY_NAME=fetch-gh-release-binary
34+
35+
curl -LO https://github.com/charlieegan3/fetch-gh-release-binary/releases/download/$VERSION/$ASSET_NAME
36+
tar -zxf $ASSET_NAME
37+
38+
./$BINARY_NAME \
3639
"-owner=${{ inputs.owner }}" \
3740
"-repo=${{ inputs.repo }}" \
3841
"-version=${{ inputs.version }}" \
3942
"-asset-pattern=${{ inputs.asset-pattern }}" \
4043
"-install-path=${{ inputs.install-path }}" \
4144
"-verbose=${{ inputs.verbose }}"
45+
46+
rm $BINARY_NAME
4247
shell: bash
4348
branding:
4449
icon: arrow-down-circle

0 commit comments

Comments
 (0)