Compare commits

...

7 Commits

Author SHA1 Message Date
gitea-actions[bot]
7874d39713 20230511112609 2023-05-11 11:26:20 +00:00
4b3a0e8ce3 Restore building geosite
All checks were successful
Build geosite.dat / build (push) Successful in 9m53s
Generate RULE-SET for Premium Edition of Clash / build (push) Successful in 11s
2023-05-11 19:20:57 +08:00
2bcef50d2d Refine Action for Clash
All checks were successful
Generate RULE-SET for Premium Edition of Clash / build (push) Successful in 9s
2023-05-11 19:14:32 +08:00
488b220b11 Refine Action for Clash
Some checks failed
Generate RULE-SET for Premium Edition of Clash / build (push) Failing after 5s
2023-05-11 18:48:21 +08:00
9d1f37aa03 Disable build
Some checks failed
Generate RULE-SET for Premium Edition of Clash / build (push) Failing after 7s
2023-05-11 18:37:09 +08:00
19cd3c0d68 Merge branch 'automation' of https://git.moon.re/MOOn/Profiles into automation
Some checks failed
Build geosite.dat / build (push) Has started running
Generate RULE-SET for Premium Edition of Clash / build (push) Failing after 8s
2023-05-11 18:33:07 +08:00
a124c2afb2 Generate RULE-SET for Clash 2023-05-11 18:33:00 +08:00
3 changed files with 43 additions and 1 deletions

View File

@@ -64,7 +64,6 @@ jobs:
- name: Git push assets to "release" branch
# if: ${{ env.NeedToSync }}
run: |
git init
git config --local user.name "gitea-actions[bot]"
git config --local user.email "gitea-actions[bot]@moon.re"
git add *.txt

View File

@@ -0,0 +1,42 @@
name: Generate RULE-SET for Premium Edition of Clash
on:
workflow_dispatch:
schedule:
- cron: "30 22 * * *"
push:
branches:
- automation
paths-ignore:
- "**/README.md"
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout codebase
uses: https://github.com/actions/checkout@v3
with:
ref: main
- name: Make directory
run: |
mkdir -p Clash/RuleSet/StreamingMedia
- name: Set variables
run: |
echo "RELEASE_NAME=$(date +%Y%m%d%H%M%S)" >> $GITHUB_ENV
echo "streaming=https://git.moon.re/MOOn/Profiles/raw/branch/automation/streaming.txt" >> $GITHUB_ENV
shell: bash
- name: Generate streaming.yaml file
run: |
echo "payload:" > Clash/RuleSet/StreamingMedia/streaming.yaml
curl -sSL ${streaming} | awk -F ':' '/^full:/ {printf " - |%s|\n", $2}' | sed "s/|/'/g" >> Clash/RuleSet/StreamingMedia/streaming.yaml
curl -sSL ${streaming} | awk -F ':' '/^domain:/ {printf " - |+.%s|\n", $2}' | sed "s/|/'/g" >> Clash/RuleSet/StreamingMedia/streaming.yaml
- name: Git push
run: |
git config --local user.name "gitea-actions[bot]"
git config --local user.email "gitea-actions[bot]@moon.re"
git add Clash
git commit -m "${{ env.RELEASE_NAME }}"
git push

View File

@@ -52,6 +52,7 @@ full:espn.hb.omtrdc.net
full:espndotcom.tt.omtrdc.net
domain:hotstar.com
domain:hotstar-cdn.net
domain:hotstar-labs.com
domain:hotstarext.com
domain:hsprepack.akamaized.net
regexp:^hses[1-7]?.akamaized.net$