diff --git a/.github/workflows/update.yml b/.github/workflows/update.yml index 58aeaccb..2ce026c9 100644 --- a/.github/workflows/update.yml +++ b/.github/workflows/update.yml @@ -2,7 +2,7 @@ name: "Update" on: schedule: - - cron: '*/10 * * * *' + - cron: '8 * * * *' # - cron: '8 */12 * * *' # At minute 8 past every 12th hour jobs: @@ -25,6 +25,7 @@ jobs: git pull github ${GITHUB_REF} --ff-only git add . if [ -z "$(git status --porcelain)" ]; then + echo 'No changes' exit 0 fi git commit -m "Update ip ranges" diff --git a/google/downloader.sh b/google/downloader.sh index 0ac4298a..617bbf59 100755 --- a/google/downloader.sh +++ b/google/downloader.sh @@ -40,7 +40,6 @@ get_dns_spf "_cloud-netblocks.googleusercontent.com" >> /tmp/netblocks.txt get_dns_spf "_spf.google.com" >> /tmp/netblocks.txt - # save ipv4 grep -v ':' /tmp/goog.txt > /tmp/google-ipv4.txt jq '.prefixes[] | [.ipv4Prefix][] | select(. != null)' -r /tmp/cloud.json >> /tmp/google-ipv4.txt