mirror of
https://github.com/edgelesssys/constellation.git
synced 2024-09-20 08:15:56 +00:00
50 lines
1.4 KiB
YAML
50 lines
1.4 KiB
YAML
|
name: versionsapi
|
||
|
description: "A GitHub Action to interact with the versions API"
|
||
|
|
||
|
inputs:
|
||
|
command:
|
||
|
description: Command to run
|
||
|
required: true
|
||
|
ref:
|
||
|
description: --ref flag
|
||
|
required: false
|
||
|
stream:
|
||
|
description: --stream flag
|
||
|
required: false
|
||
|
version:
|
||
|
description: --version flag
|
||
|
required: false
|
||
|
add_latest:
|
||
|
description: --latest flag (boolean)
|
||
|
required: false
|
||
|
default: "false"
|
||
|
add_release:
|
||
|
description: --release flag (boolean)
|
||
|
required: false
|
||
|
default: "false"
|
||
|
rm_all:
|
||
|
description: --all flag (boolean)
|
||
|
required: false
|
||
|
default: "false"
|
||
|
dryrun:
|
||
|
description: --dryrun flag (boolean)
|
||
|
required: false
|
||
|
default: "false"
|
||
|
outputs:
|
||
|
output:
|
||
|
description: Output of the command
|
||
|
|
||
|
runs:
|
||
|
using: docker
|
||
|
image: docker://ghcr.io/edgelesssys/constellation/versionsapi-ci-cli:latest
|
||
|
args:
|
||
|
- ${{ inputs.command }}
|
||
|
- ${{ inputs.ref != '' && format('--ref={0}', inputs.ref) || '' }}
|
||
|
- ${{ inputs.stream != '' && format('--stream={0}', inputs.stream) || '' }}
|
||
|
- ${{ inputs.version != '' && format('--version={0}', inputs.version) || '' }}
|
||
|
- ${{ inputs.add_latest == 'true' && '--latest' || '' }}
|
||
|
- ${{ inputs.add_release == 'true' && '--release' || '' }}
|
||
|
- ${{ inputs.rm_all == 'true' && '--all' || '' }}
|
||
|
- ${{ inputs.dryrun == 'true' && '--dryrun' || '' }}
|
||
|
- --verbose
|