Update .github/workflows/run.yml

This commit is contained in:
Loyalsoldier 2021-08-28 19:26:07 +08:00 committed by loyalsoldier
parent a12976f7f8
commit 861125cf4c
No known key found for this signature in database
GPG Key ID: 23829BBC1ACF2C90

View File

@ -116,7 +116,7 @@ jobs:
- name: Git push assets to "release" branch - name: Git push assets to "release" branch
run: | run: |
cd publish cd publish || exit 1
git init git init
git config --local user.name "github-actions[bot]" git config --local user.name "github-actions[bot]"
git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com" git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com"
@ -125,19 +125,10 @@ jobs:
git commit -m "${{ env.RELEASE_NAME }}" git commit -m "${{ env.RELEASE_NAME }}"
git remote add origin "https://${{ github.actor }}:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}" git remote add origin "https://${{ github.actor }}:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}"
git push -f origin release git push -f origin release
- name: Purge jsdelivr CDN - name: Purge jsdelivr CDN
run: | run: |
curl https://purge.jsdelivr.net/gh/Loyalsoldier/clash-rules@release/direct.txt cd publish || exit 1
curl https://purge.jsdelivr.net/gh/Loyalsoldier/clash-rules@release/proxy.txt for file in $(ls); do
curl https://purge.jsdelivr.net/gh/Loyalsoldier/clash-rules@release/reject.txt curl -i "https://purge.jsdelivr.net/gh/${{ github.repository }}@release/${file}"
curl https://purge.jsdelivr.net/gh/Loyalsoldier/clash-rules@release/private.txt done
curl https://purge.jsdelivr.net/gh/Loyalsoldier/clash-rules@release/apple.txt
curl https://purge.jsdelivr.net/gh/Loyalsoldier/clash-rules@release/icloud.txt
curl https://purge.jsdelivr.net/gh/Loyalsoldier/clash-rules@release/google.txt
curl https://purge.jsdelivr.net/gh/Loyalsoldier/clash-rules@release/gfw.txt
curl https://purge.jsdelivr.net/gh/Loyalsoldier/clash-rules@release/greatfire.txt
curl https://purge.jsdelivr.net/gh/Loyalsoldier/clash-rules@release/tld-not-cn.txt
curl https://purge.jsdelivr.net/gh/Loyalsoldier/clash-rules@release/telegramcidr.txt
curl https://purge.jsdelivr.net/gh/Loyalsoldier/clash-rules@release/lancidr.txt
curl https://purge.jsdelivr.net/gh/Loyalsoldier/clash-rules@release/cncidr.txt