annobase-fetch/action.yml
Gergo bcb77261f4 AnnoBase release download step for product workflows
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-19 13:13:36 +01:00

31 lines
1.1 KiB
YAML

name: AnnoBase
description: Downloads the AnnoBase release that the app settings name and unpacks it next to the app
inputs:
settings:
description: JSON settings file of the app, relative to the workspace
required: true
key:
description: Dot path of the AnnoBase version in that file
required: false
default: AnnoBase.Version
token:
description: Token that can read annodev/anno-base
required: true
destination:
description: Folder that receives AnnoBase; empty means AnnoBase in the workspace
required: false
default: ""
runs:
using: composite
steps:
- shell: bash
env:
ANNOBASE_TOKEN: ${{ inputs.token }}
ANNOBASE_SETTINGS: ${{ inputs.settings }}
ANNOBASE_KEY: ${{ inputs.key }}
ANNOBASE_DESTINATION: ${{ inputs.destination }}
run: |
set -euo pipefail
args=(--settings "$ANNOBASE_SETTINGS" --key "$ANNOBASE_KEY")
if [ -n "$ANNOBASE_DESTINATION" ]; then args+=(--destination "$ANNOBASE_DESTINATION"); fi
python3 "${{ github.action_path }}/fetch.py" "${args[@]}"