From 3fb05f839cddb97829ca806690169dfb5a9fffbf Mon Sep 17 00:00:00 2001 From: Lord_Alfred <2259979+lord-alfred@users.noreply.github.com> Date: Thu, 29 Jul 2021 17:00:52 +0300 Subject: [PATCH] fixes --- .github/workflows/update.yml | 3 ++- google/downloader.sh | 1 - 2 files changed, 2 insertions(+), 2 deletions(-) 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