Skip to content

update clash-meta.yaml #10

update clash-meta.yaml

update clash-meta.yaml #10

Workflow file for this run

name: update clash-meta.yaml
on:
push:
branches:
- main
schedule:
- cron: '0 23 * * *'
jobs:
Build:
permissions: write-all
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
persist-credentials: false
fetch-depth: 0
- name: Update Clash
run: |
wget -O source/clash-meta.yaml ${{ secrets.CLASH_API }}
sed -i "s/${{ secrets.CLASH_REPLACE }}/_proxypool_/g" source/clash-meta.yaml
- name: Commit files
run: |
git config --local user.email "[email protected]"
git config --local user.name "snakem982"
git add .
git commit -a -m "update clash-meta.yaml"
- name: Git Push
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: ${{ github.ref }}