#!/usr/bin/env nix-shell #!nix-shell -i bash -p gnused jq nix-prefetch-git curl set -eou pipefail ROOT="$(dirname "$(readlink -f "$0")")" if [[ ! "$(basename $ROOT)" == "rpcs3" || ! -f "$ROOT/default.nix" ]]; then echo "ERROR: Not in the rpcs3 folder" exit 1 fi if [[ ! -v GITHUB_TOKEN ]]; then echo "ERROR: \$GITHUB_TOKEN not set" exit 1 fi PAYLOAD=$(jq -cn --rawfile query /dev/stdin '{"query": $query}' <