Skip to content

Hourly hideip.me Update #74

Hourly hideip.me Update

Hourly hideip.me Update #74

name: Hourly hideip.me Update
on:
schedule:
- cron: '0 * * * *' # Runs every hour
workflow_dispatch:
jobs:
fetch-hideip-files:
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v3
- name: Download .txt Files from hideip.me
run: |
# Define the target directory
TARGET_DIR=Lists/PROXY/hideip.me
mkdir -p $TARGET_DIR
# List of .txt files to download
FILES=(
"connect.txt"
"http.txt"
"https.txt"
"socks4.txt"
"socks5.txt"
)
# Base URL using raw.githubusercontent.com
BASE_URL="https://raw.githubusercontent.com/zloi-user/hideip.me/master"
# Download each file
for FILE in "${FILES[@]}"; do
echo "Downloading $FILE from $BASE_URL/$FILE"
curl -L -o "$TARGET_DIR/$FILE" "$BASE_URL/$FILE" || echo "Failed to download $FILE"
done
- name: List files in the target directory
run: ls -la Lists/PROXY/hideip.me
- name: Commit and Push results
run: |
git config --local user.email "[email protected]"
git config --local user.name "GitHub Action"
git pull
git add Lists/PROXY/hideip.me/*
git commit -m "Update hourly hideip.me files" --allow-empty
git push