15 lines
404 B
Bash
Executable File
15 lines
404 B
Bash
Executable File
#!/usr/bin/env bash
|
|
# Prints a greeting and basic CI info.
|
|
# Usage: hello.sh [name]
|
|
# Inputs (args): name (optional, default "world")
|
|
# Outputs: greeting on stdout
|
|
set -euo pipefail
|
|
|
|
NAME="${1:-world}"
|
|
|
|
echo "Hello, ${NAME}!"
|
|
echo "repository: ${GITHUB_REPOSITORY:-unknown}"
|
|
echo "ref: ${GITHUB_REF:-unknown}"
|
|
echo "sha: ${GITHUB_SHA:-unknown}"
|
|
echo "run id: ${GITHUB_RUN_ID:-unknown}"
|