trying to rework database migrations
This commit is contained in:
8
packs.dev/examples/basic-pack/actions/echo.sh
Executable file
8
packs.dev/examples/basic-pack/actions/echo.sh
Executable file
@@ -0,0 +1,8 @@
|
||||
#!/bin/bash
|
||||
set -e
|
||||
|
||||
# Get parameter from environment
|
||||
MESSAGE="${ATTUNE_ACTION_message:-Hello from basic-pack!}"
|
||||
|
||||
# Output JSON result
|
||||
echo "{\"result\": \"$MESSAGE\"}"
|
||||
27
packs.dev/examples/basic-pack/actions/echo.yaml
Normal file
27
packs.dev/examples/basic-pack/actions/echo.yaml
Normal file
@@ -0,0 +1,27 @@
|
||||
name: echo
|
||||
ref: basic-pack.echo
|
||||
description: "Echo a message"
|
||||
runner_type: shell
|
||||
enabled: true
|
||||
entry_point: echo.sh
|
||||
|
||||
parameters:
|
||||
type: object
|
||||
properties:
|
||||
message:
|
||||
type: string
|
||||
description: "Message to echo"
|
||||
default: "Hello from basic-pack!"
|
||||
required: []
|
||||
|
||||
output:
|
||||
type: object
|
||||
properties:
|
||||
result:
|
||||
type: string
|
||||
description: "The echoed message"
|
||||
|
||||
tags:
|
||||
- basic
|
||||
- shell
|
||||
- example
|
||||
Reference in New Issue
Block a user