generated from LinuxSuRen/github-go
-
-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9684e5c
commit b56f934
Showing
2 changed files
with
13 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,3 +3,4 @@ bin/ | |
|
||
*/**/*.xml | ||
coverage.out | ||
node_modules |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,16 @@ | ||
name: 'Downloader tool' | ||
description: 'Downloader tool' | ||
name: setup-hd | ||
description: Setup hd, on GitHub Actions runners | ||
inputs: | ||
version: | ||
description: 'The version of hd' | ||
description: Version of hd CLI to install | ||
required: false | ||
default: 'v0.0.69' | ||
tool: | ||
description: 'The desired tool name' | ||
required: true | ||
default: 0.0.69 | ||
runs: | ||
using: 'docker' | ||
image: 'docker://ghcr.io/linuxsuren/hd:v0.0.69' | ||
args: | ||
- hd | ||
- install | ||
- ${{ inputs.tool }} | ||
- --fetch=true | ||
- --target=/github/home/ | ||
- --force | ||
using: composite | ||
steps: | ||
# We verify the version against a SHA **in the published action itself**, not in the GCS bucket. | ||
- shell: bash | ||
run: | | ||
#!/bin/bash | ||
curl -L https://github.com/LinuxSuRen/http-downloader/releases/download/v${{ inputs.version }}/hd-linux-amd64.tar.gz | tar xzv hd | ||
sudo mv hd /usr/bin/hd |