This commit is contained in:
Lord_Alfred
2021-07-29 17:00:52 +03:00
parent 5a35acdebc
commit 3fb05f839c
2 changed files with 2 additions and 2 deletions

View File

@@ -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"

View File

@@ -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