Update sync_warp-go.yml

dependabot/github_actions/goreleaser/goreleaser-action-4
fscarmen 3 years ago committed by GitHub
parent 9a1345ee9a
commit 6baf4d43ed
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 5
      .github/workflows/sync_warp-go.yml

@ -28,13 +28,10 @@ jobs:
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' | sed -n 1p | sed "s/.*>\([0-9.]\{1,\}\)<.*/\1/g")
if [ "$LATEST_VERSION" != "$NOW_VERSION" ]; then
echo yes
if [ "$LATEST" != "$NOW" ]; then
git clone https://git.zx2c4.com/wireguard-go ${{ env.WORKDIR }}
cp ./.github/wireguard-go-releaser.yml ${{ env.WORKDIR }}/.goreleaser.yml
echo "VERSION=$LATEST" >> $GITHUB_ENV
else
echo no
fi
- name: Set up GoReleaser

Loading…
Cancel
Save