Skip to content

ROS CUCC list

ROS CUCC list #116

Workflow file for this run

name: ROS CUCC list
on:
schedule:
- cron: "00 21 * * 1"
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- 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: Combine
run: |
clang="$(curl -kLfsm 5 https://ispip.clang.cn/unicom_cnc.txt)"
echo -e "${clang}" | sed -e 's/^/add address=/g' -e 's/$/ list=CUCC/g' | sed -e $'1i\\\n/ip firewall address-list' -e $'1i\\\nremove [find list=CUCC]' > cucc.rsc
- name: Apply
run: |
Emoji=("πŸŽ‰" "🀞" "✨" "🎁" "🎈" "πŸŽ„" "🎨" "πŸ’‹" "πŸ“" "πŸ•" "πŸ‰" "πŸ’" "🌴" "πŸš€" "πŸ›Έ" "πŸ—½" "β›…" "🌈" "πŸ”₯" "β›„" "🐢" "πŸ…" "πŸ¦„" "🐀")
git add .
git commit -m "${Emoji[$[$RANDOM % ${#Emoji[@]}]]} Sync $(date +%Y-%m-%d" "%H:%M:%S)"
git push -f