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

     1  #!/bin/sh
     2  
     3  set -eu
     4  
     5  input=.github/renovate.yaml
     6  output=.github/renovate.json
     7  
     8  summary_output=${1:-/dev/stdout}
     9  
    10  toplevel=$(git rev-parse --show-toplevel)
    11  cd "$toplevel"
    12  
    13  if ! git diff --exit-code "${output}" > /dev/null ; then
    14  	cat <<-EOT
    15  		::error file=$output,title=Out of date::$output is out of date with respect to $input. Run "make generate-renovate-config" to fix this.
    16  	EOT
    17  
    18  	cat <<-EOT >> "${summary_output}"
    19  		### Renovate configuration drift :bangbang:
    20  
    21  		\`$output\` is out of sync with respect to \`$input\`.
    22  
    23  		:bulb: Run \`make generate-renovate-config\` to update it.
    24  	EOT
    25  
    26  	exit 1
    27  fi
    28  
    29  exit 0