|
|
|
@ -23,13 +23,19 @@ jobs:
|
|
|
|
persist-credentials: false
|
|
|
|
persist-credentials: false
|
|
|
|
fetch-depth: 0
|
|
|
|
fetch-depth: 0
|
|
|
|
|
|
|
|
|
|
|
|
- name: Update Clash
|
|
|
|
- name: Update Clash 0
|
|
|
|
run: |
|
|
|
|
run: |
|
|
|
|
wget -O source/clash-meta.yaml ${{ secrets.CLASH_API }}
|
|
|
|
|
|
|
|
wget -O source/v2ray.txt ${{ secrets.V2RAY_API }}
|
|
|
|
wget -O source/v2ray.txt ${{ secrets.V2RAY_API }}
|
|
|
|
rand=_$(date +%s%N | md5sum |cut -c 1-5)_
|
|
|
|
wget -O source/clash-meta.yaml ${{ secrets.CLASH_API }}
|
|
|
|
|
|
|
|
rand=_$(date +%s%N | md5sum |cut -c 2-6)_
|
|
|
|
sed -i "s/${{ secrets.CLASH_REPLACE }}/$rand/g" source/clash-meta.yaml
|
|
|
|
sed -i "s/${{ secrets.CLASH_REPLACE }}/$rand/g" source/clash-meta.yaml
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- name: Update Clash 1
|
|
|
|
|
|
|
|
run: |
|
|
|
|
|
|
|
|
curl -L ${{ secrets.CLASH_API_1 }} > source/clash-meta-1.yaml
|
|
|
|
|
|
|
|
rand=www.$(date +%s%N | md5sum |cut -c 3-7).com
|
|
|
|
|
|
|
|
sed -i "s/${{ secrets.CLASH_REPLACE_1 }}/$rand/g" source/clash-meta-1.yaml
|
|
|
|
|
|
|
|
|
|
|
|
- name: Commit files
|
|
|
|
- name: Commit files
|
|
|
|
run: |
|
|
|
|
run: |
|
|
|
|
git config --local user.email "snakem982@gmail.com"
|
|
|
|
git config --local user.email "snakem982@gmail.com"
|
|
|
|
|