Compare commits

...

4 Commits

2 changed files with 14 additions and 14 deletions

View File

@ -1,5 +1,6 @@
name: Generate RULE-SET for Premium Edition of Clash name: Generate RULE-SET for Premium Edition of Clash
on: on:
workflow_dispatch:
schedule: schedule:
- cron: "30 22 * * *" - cron: "30 22 * * *"
push: push:
@ -9,25 +10,24 @@ on:
- "**/README.md" - "**/README.md"
jobs: jobs:
build: build:
name: Build
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Set variables - name: Set variables
run: | run: |
echo "::set-env name=RELEASE_NAME::Released on $(date +%Y%m%d%H%M)" echo "RELEASE_NAME=Released on $(date +%Y%m%d%H%M)" >> $GITHUB_ENV
echo "::set-env name=TAG_NAME::$(date +%Y%m%d%H%M)" echo "TAG_NAME=$(date +%Y%m%d%H%M)" >> $GITHUB_ENV
echo "::set-env name=v2fly_icloud::https://raw.githubusercontent.com/v2fly/domain-list-community/release/icloud.txt" echo "v2fly_icloud=https://raw.githubusercontent.com/v2fly/domain-list-community/release/icloud.txt" >> $GITHUB_ENV
echo "::set-env name=v2fly_apple::https://raw.githubusercontent.com/v2fly/domain-list-community/release/apple.txt" echo "v2fly_apple=https://raw.githubusercontent.com/v2fly/domain-list-community/release/apple.txt" >> $GITHUB_ENV
echo "::set-env name=Loyalsoldier_reject::https://raw.githubusercontent.com/Loyalsoldier/v2ray-rules-dat/release/reject-list.txt" echo "Loyalsoldier_reject=https://raw.githubusercontent.com/Loyalsoldier/v2ray-rules-dat/release/reject-list.txt" >> $GITHUB_ENV
echo "::set-env name=Loyalsoldier_proxy::https://raw.githubusercontent.com/Loyalsoldier/v2ray-rules-dat/release/proxy-list.txt" echo "Loyalsoldier_proxy=https://raw.githubusercontent.com/Loyalsoldier/v2ray-rules-dat/release/proxy-list.txt" >> $GITHUB_ENV
echo "::set-env name=Loyalsoldier_direct::https://raw.githubusercontent.com/Loyalsoldier/v2ray-rules-dat/release/direct-list.txt" echo "Loyalsoldier_direct=https://raw.githubusercontent.com/Loyalsoldier/v2ray-rules-dat/release/direct-list.txt" >> $GITHUB_ENV
echo "::set-env name=felixonmars_apple::https://raw.githubusercontent.com/felixonmars/dnsmasq-china-list/master/apple.china.conf" echo "felixonmars_apple=https://raw.githubusercontent.com/felixonmars/dnsmasq-china-list/master/apple.china.conf" >> $GITHUB_ENV
echo "::set-env name=felixonmars_google::https://raw.githubusercontent.com/felixonmars/dnsmasq-china-list/master/google.china.conf" echo "felixonmars_google=https://raw.githubusercontent.com/felixonmars/dnsmasq-china-list/master/google.china.conf" >> $GITHUB_ENV
echo "::set-env name=ipipnet_chinaiplist::https://raw.githubusercontent.com/17mon/china_ip_list/master/china_ip_list.txt" echo "ipipnet_chinaiplist=https://raw.githubusercontent.com/17mon/china_ip_list/master/china_ip_list.txt" >> $GITHUB_ENV
shell: bash shell: bash
- name: Checkout the "hidden" branch - name: Checkout the "hidden" branch
uses: actions/checkout@v2.3.2 uses: actions/checkout@v2.3.3
with: with:
ref: hidden ref: hidden
@ -95,4 +95,4 @@ jobs:
git add . git add .
git commit -m "${{ env.RELEASE_NAME }}" git commit -m "${{ env.RELEASE_NAME }}"
git remote add origin "https://${{ github.actor }}:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}" git remote add origin "https://${{ github.actor }}:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}"
git push -f -u origin release git push -f origin release

View File

@ -130,7 +130,7 @@ rules:
- PROCESS-NAME,naive,DIRECT - PROCESS-NAME,naive,DIRECT
- PROCESS-NAME,Thunder,DIRECT - PROCESS-NAME,Thunder,DIRECT
- PROCESS-NAME,DownloadService,DIRECT - PROCESS-NAME,DownloadService,DIRECT
- PROCESS-NAME,qbittorrent,DIRECT - PROCESS-NAME,qBittorrent,DIRECT
- PROCESS-NAME,Transmission,DIRECT - PROCESS-NAME,Transmission,DIRECT
- PROCESS-NAME,fdm,DIRECT - PROCESS-NAME,fdm,DIRECT
- PROCESS-NAME,aria2c,DIRECT - PROCESS-NAME,aria2c,DIRECT