Skip to content

Update Indonesia IP List #33

Update Indonesia IP List

Update Indonesia IP List #33

Workflow file for this run

name: Update Indonesia IP List
on:
schedule:
# Runs every day at 12:00 AM UTC
- cron: '0 0 * * *'
workflow_dispatch: # Allows manual trigger from the Actions tab
jobs:
update-list:
runs-on: ubuntu-latest
permissions:
contents: write # Required to push changes back to the repo
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Download Latest ID Zone
run: |
curl -s -o id.zone https://www.ipdeny.com/ipblocks/data/countries/id.zone
echo "Download complete."
- name: Commit and Push if Changed
run: |
git config --local user.email "github-actions[bot]@users.noreply.github.com"
git config --local user.name "github-actions[bot]"
# Check if id.zone has changed
if git diff --exit-code id.zone; then
echo "No changes detected in IP list."
else
git add id.zone
git commit -m "chore: update indonesia ip list [$(date +'%Y-%m-%d')]"
git push
fi