|
|
|
@ -25,7 +25,7 @@ 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 }}
|
|
|
|
rand=$(date +%s%N | md5sum |cut -c 1-5)
|
|
|
|
rand=_$(date +%s%N | md5sum |cut -c 1-5)_
|
|
|
|
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: Commit files
|
|
|
|
- name: Commit files
|
|
|
|
|