mirror of
https://gitlab.com/fscarmen/warp.git
synced 2026-06-15 03:25:42 +08:00
Update sync_wireguard-go.yml
Former-commit-id: 325411220da8c8c0c144c1247656e0442f0969de
This commit is contained in:
@@ -19,14 +19,14 @@ jobs:
|
||||
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@master
|
||||
uses: actions/checkout@v3
|
||||
with:
|
||||
fetch-depth: 0
|
||||
|
||||
- name: Check the official latest version of WireGuard-go
|
||||
run: |
|
||||
NOW=$(wget -qO- "https://api.github.com/repos/${{ env.USERNAME }}/warp/releases" | grep "tag_name" | grep -i "wireguard-go" | head -n 1 | sed "s/.*_v\(.*\)\".*/\1/g")
|
||||
LATEST=$(wget -qO- https://git.zx2c4.com/wireguard-go/ | grep '/wireguard-go/tag' | head -n 1 | sed "s/.*>\([0-9.]\{1,\}\)<.*/\1/g")
|
||||
LATEST=$(wget -qO- https://git.zx2c4.com/wireguard-go/ | grep '/wireguard-go/tag' | sed -n 1p | sed "s/.*>\([0-9.]\{1,\}\)<.*/\1/g")
|
||||
NOW1=$(echo $NOW | cut -d \. -f1)
|
||||
NOW2=$(echo $NOW | cut -d \. -f2)
|
||||
NOW3=$(echo $NOW | cut -d \. -f3)
|
||||
|
||||
Reference in New Issue
Block a user