Duplicate List #15
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: Duplicate List | |
on: | |
schedule: | |
- cron: 0 4 * * 1 | |
workflow_dispatch: | |
env: | |
TZ: Asia/Shanghai | |
jobs: | |
Update_Filters: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repo | |
uses: actions/checkout@main | |
- name: Setup Python 3.9.x | |
uses: actions/setup-python@main | |
with: | |
python-version: '3.9.x' | |
- name: Set git identity | |
run : | | |
git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com" | |
git config --global user.name "github-actions[bot]" | |
sudo timedatectl set-timezone "Asia/Shanghai" | |
- name: Install Dependencies | |
run: | | |
sudo timedatectl set-timezone "$TZ" | |
pip install requests | |
- name: Download Filters | |
run: | | |
python Duplicate.py | |
rm china_domain_list.txt | |
rm proxy_list2.txt | |
- name: Apply | |
run: | | |
if [ -z "$(git status --porcelain)" ]; then | |
exit 0 | |
else | |
Emoji=("🎉" "🤞" "✨" "🎁" "🎈" "🎄" "🎨" "🍓" "🍕" "🍉" "💐" "🌴" "🚀" "🛸" "🗽" "⛅" "🌈" "🔥" "⛄" "🐶" "🏅" "🦄" "🐤") | |
git add . | |
git commit -m "${Emoji[$[$RANDOM % ${#Emoji[@]}]]} Sync $(date +%Y-%m-%d" "%H:%M:%S)" | |
git push -f -u origin main | |
fi |