Update sync_wgcf.yml

Former-commit-id: bcf3da95957f7dbec1d5a76fe3845345bbbe2b5f
This commit is contained in:
fscarmen
2022-06-04 11:50:18 +08:00
committed by GitHub
parent 15a6117346
commit 1e477ba899
+1 -1
View File
@@ -17,7 +17,7 @@ jobs:
- uses: actions/checkout@v3
- name: Update wgcf to latest version
run: |
NOW='2.0.0'
NOW=$(wget -qO- https://raw.githubusercontent.com/${{ env.USERNAME }}/warp/main/menu.sh | grep 'latest=${latest' | cut -d \' -f2)
LATEST=$(wget -qO- "https://api.github.com/repos/ViRb3/wgcf/releases/latest" | grep "tag_name" | head -n 1 | cut -d : -f2 | sed 's/[ \"v,]//g')
NOW1=$(echo $NOW | cut -d \. -f1)
NOW2=$(echo $NOW | cut -d \. -f2)