Skip to content

Commit

Permalink
Support to install hd via js
Browse files Browse the repository at this point in the history
  • Loading branch information
LinuxSuRen committed Aug 25, 2022
1 parent 9684e5c commit b56f934
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 16 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ bin/

*/**/*.xml
coverage.out
node_modules
28 changes: 12 additions & 16 deletions action.yml
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

0 comments on commit b56f934

Please sign in to comment.