Skip to content

[Sparkle] 自动更新 overdownload-ips.txt #4741

[Sparkle] 自动更新 overdownload-ips.txt

[Sparkle] 自动更新 overdownload-ips.txt #4741

Workflow file for this run

name: Combine TXT Files
on:
push:
paths:
- '**.txt'
workflow_dispatch:
jobs:
combine-txt-files:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Create combine directory
run: mkdir -p combine
- name: Cleanup Rules and Merge ips to CIDR
run: python3 ./tools/combine.py
- name: Commit and push changes
run: |
git config --global user.name 'github-actions[bot]'
git config --global user.email 'github-actions[bot]@users.noreply.github.com'
git add combine/all.txt
git diff-index --quiet HEAD || git commit -m 'Combine all txt files into combine/all.txt'
git push