12 lines
433 B
Bash
Executable File
12 lines
433 B
Bash
Executable File
#!/usr/bin/env bash
|
|
# Prints a notification line (stub: replace with a webhook call later).
|
|
# Usage: notify.sh <status> <message>
|
|
# Inputs (args): status (required), message (required)
|
|
# Outputs: one line on stdout
|
|
set -euo pipefail
|
|
|
|
STATUS="${1:?usage: notify.sh <status> <message>}"
|
|
MESSAGE="${2:?usage: notify.sh <status> <message>}"
|
|
|
|
echo "[notify] ${STATUS}: ${MESSAGE} (${GITHUB_REPOSITORY:-unknown} @ ${GITHUB_SHA:-unknown})"
|