Files
gitea-resource/bin/pr/check
Alexis Vanier ebbf79ce68 Initial commit
2020-01-11 01:43:50 -05:00

9 lines
320 B
Bash
Executable File

#!/usr/bin/env sh
exec 3>&1 # Make stdout available as fd 3 for the result
exec 1>&2 # Redirect all output to stderr for logging
# <&0 Take stdin and pass it to our binary
# >&3 Take stdout and pass it to fd3, a Concourse resource requirement
gitea-resource --action check pr "${@}" <&0 | jq . >&3