Compare commits
	
		
			7 Commits
		
	
	
		
			e49a116418
			...
			automation
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| 
						 | 
					7874d39713 | ||
| 4b3a0e8ce3 | |||
| 2bcef50d2d | |||
| 488b220b11 | |||
| 9d1f37aa03 | |||
| 19cd3c0d68 | |||
| a124c2afb2 | 
@@ -64,7 +64,6 @@ jobs:
 | 
				
			|||||||
      - name: Git push assets to "release" branch
 | 
					      - name: Git push assets to "release" branch
 | 
				
			||||||
        # if: ${{ env.NeedToSync }}
 | 
					        # if: ${{ env.NeedToSync }}
 | 
				
			||||||
        run: |
 | 
					        run: |
 | 
				
			||||||
          git init
 | 
					 | 
				
			||||||
          git config --local user.name "gitea-actions[bot]"
 | 
					          git config --local user.name "gitea-actions[bot]"
 | 
				
			||||||
          git config --local user.email "gitea-actions[bot]@moon.re"
 | 
					          git config --local user.email "gitea-actions[bot]@moon.re"
 | 
				
			||||||
          git add *.txt
 | 
					          git add *.txt
 | 
				
			||||||
 
 | 
				
			|||||||
							
								
								
									
										42
									
								
								.gitea/workflows/clash.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										42
									
								
								.gitea/workflows/clash.yaml
									
									
									
									
									
										Normal 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
 | 
				
			||||||
@@ -52,6 +52,7 @@ full:espn.hb.omtrdc.net
 | 
				
			|||||||
full:espndotcom.tt.omtrdc.net
 | 
					full:espndotcom.tt.omtrdc.net
 | 
				
			||||||
domain:hotstar.com
 | 
					domain:hotstar.com
 | 
				
			||||||
domain:hotstar-cdn.net
 | 
					domain:hotstar-cdn.net
 | 
				
			||||||
 | 
					domain:hotstar-labs.com
 | 
				
			||||||
domain:hotstarext.com
 | 
					domain:hotstarext.com
 | 
				
			||||||
domain:hsprepack.akamaized.net
 | 
					domain:hsprepack.akamaized.net
 | 
				
			||||||
regexp:^hses[1-7]?.akamaized.net$
 | 
					regexp:^hses[1-7]?.akamaized.net$
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user