Files
vociferate/download-vociferate-binary/action.yml
2026-03-21 14:45:50 +00:00

31 lines
819 B
YAML

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"