chore(go): compose vociferate runtime flow
This commit is contained in:
31
download-vociferate-binary/action.yml
Normal file
31
download-vociferate-binary/action.yml
Normal file
@@ -0,0 +1,31 @@
|
||||
name: vociferate/download-vociferate-binary
|
||||
description: Download a released vociferate binary to a target path.
|
||||
|
||||
inputs:
|
||||
token:
|
||||
description: Token used to authenticate the download request.
|
||||
required: true
|
||||
asset-url:
|
||||
description: URL of the release asset to download.
|
||||
required: true
|
||||
binary-path:
|
||||
description: Destination path for the downloaded binary.
|
||||
required: true
|
||||
|
||||
runs:
|
||||
using: composite
|
||||
steps:
|
||||
- name: Download binary
|
||||
shell: bash
|
||||
env:
|
||||
TOKEN: ${{ inputs.token }}
|
||||
ASSET_URL: ${{ inputs.asset-url }}
|
||||
BINARY_PATH: ${{ inputs.binary-path }}
|
||||
run: |
|
||||
set -euo pipefail
|
||||
|
||||
curl --fail --location \
|
||||
-H "Authorization: token ${TOKEN}" \
|
||||
-o "$BINARY_PATH" \
|
||||
"$ASSET_URL"
|
||||
chmod +x "$BINARY_PATH"
|
||||
Reference in New Issue
Block a user