update workflow

main
snakem982 1 year ago
parent e919d48598
commit 7f24d361ec

@ -2,6 +2,11 @@ name: update clash-meta.yaml
on: on:
push: push:
paths-ignore:
- "README.md"
- "script/**"
- "source/**"
- ".gitignore"
branches: branches:
- main - main
schedule: schedule:
@ -20,7 +25,8 @@ jobs:
- name: Update Clash - name: Update Clash
run: | run: |
wget -O source/clash-meta.yaml ${{ secrets.CLASH_API }} wget -O source/clash-meta.yaml ${{ secrets.CLASH_API }}
sed -i "s/${{ secrets.CLASH_REPLACE }}/_proxypool_/g" source/clash-meta.yaml rand=$(date +%s%N | md5sum |cut -c 1-5)
sed -i "s/${{ secrets.CLASH_REPLACE }}/$rand/g" source/clash-meta.yaml
- name: Commit files - name: Commit files
run: | run: |

Loading…
Cancel
Save