Sha256: 4d12c89b2974dd29d9fc78e4b2acb0a85db0bbcf0ee7c81ecf2b976489e0ad77

Contents?: true

Size: 495 Bytes

Versions: 42

Compression:

Stored size: 495 Bytes

Contents

#!/bin/bash -e

script/update-cdn-ips >/dev/null 2>&1
files=( cloudflare fastly)

# `git diff --quiet` suppresses output and sets a return code
# 0 - no changes
# 1 - changes
for file in "${files[@]}"
do
  if git diff -w --quiet --cached "config/$file-ips.txt"
  then
    echo "$file IP list is up-to-date."
  else
    echo git reset "config/$file-ips.txt"
    git reset --quiet "config/$file-ips.txt"
    echo "*** $file IP list is out of date! Run script/update-cdn-ips!"
    exit 1
  fi
done

Version data entries

42 entries across 42 versions & 1 rubygems

Version Path
github-pages-health-check-1.18.5 script/check-cdn-ips
github-pages-health-check-1.18.4 script/check-cdn-ips
github-pages-health-check-1.18.2 script/check-cdn-ips
github-pages-health-check-1.18.1 script/check-cdn-ips
github-pages-health-check-1.18.0 script/check-cdn-ips
github-pages-health-check-1.17.9 script/check-cdn-ips
github-pages-health-check-1.17.8 script/check-cdn-ips
github-pages-health-check-1.17.7 script/check-cdn-ips
github-pages-health-check-1.17.6 script/check-cdn-ips
github-pages-health-check-1.17.2 script/check-cdn-ips
github-pages-health-check-1.17.1 script/check-cdn-ips
github-pages-health-check-1.17.0 script/check-cdn-ips
github-pages-health-check-1.16.1 script/check-cdn-ips
github-pages-health-check-1.16.0 script/check-cdn-ips
github-pages-health-check-1.15.0 script/check-cdn-ips
github-pages-health-check-1.14.0 script/check-cdn-ips
github-pages-health-check-1.13.0 script/check-cdn-ips
github-pages-health-check-1.12.0 script/check-cdn-ips
github-pages-health-check-1.11.1 script/check-cdn-ips
github-pages-health-check-1.11.0 script/check-cdn-ips