[Sparkle] 自动更新 untrusted-ips.txt #4652
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |