github.com/grafana/synthetic-monitoring-agent@v0.64.2/scripts/generate-renovate-config (about)

     1  #!/bin/sh
     2  
     3  set -eu
     4  
     5  input=.github/renovate.yaml
     6  output=.github/renovate.json
     7  
     8  toplevel=$(git rev-parse --show-toplevel)
     9  cd "$toplevel"
    10  
    11  if ! test -e "${input}" ; then
    12  	echo "W: ${input} does not exist. Stop." >&2
    13  	exit 0
    14  fi
    15  
    16  exec yq --output-format json . < "${input}" > "${output}"