36 lines
1.4 KiB
YAML
36 lines
1.4 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: ""
|
|
frontend-packages:
|
|
description: AnnoBase frontend packages to build after the download, for example "api react map"; empty builds none
|
|
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 }}
|
|
ANNOBASE_FRONTEND_PACKAGES: ${{ inputs.frontend-packages }}
|
|
run: |
|
|
set -euo pipefail
|
|
args=(--settings "$ANNOBASE_SETTINGS" --key "$ANNOBASE_KEY" --frontend-packages "$ANNOBASE_FRONTEND_PACKAGES")
|
|
if [ -n "$ANNOBASE_DESTINATION" ]; then args+=(--destination "$ANNOBASE_DESTINATION"); fi
|
|
python3 "${{ github.action_path }}/fetch.py" "${args[@]}"
|