|
|
|
|
@ -22,7 +22,7 @@ jobs: |
|
|
|
|
run: | |
|
|
|
|
NOW=$(wget -qO- "https://api.github.com/repos/${{ github.repository }}/releases" | grep "tag_name" | grep "CloudFlare" | head -n 1 | sed "s/.*_v\(.\{1,\}\)\".*/\1/g") |
|
|
|
|
LATEST=$(wget -qO- "https://pkg.cloudflareclient.com/packages/cloudflare-warp" | grep "release-row" | awk -F '</td><td>' {'print $1'} | awk -F '<td>' {'print $2'}) |
|
|
|
|
echo $NOW |
|
|
|
|
|
|
|
|
|
Operating_System=("CentOS 8" "Debian Bullseye" "Debian Buster" "Debian Stretch" "Ubuntu Jammy" "Ubuntu Focal" "Ubuntu Bionic" "Ubuntu Xenial") |
|
|
|
|
System_Rename=("CentOS_8.rpm" "Debian_11.deb" "Debian_10.deb" "Debian_9.deb" "Ubuntu_22.04.deb" "Ubuntu_20.04.deb" "Ubuntu_18.04.deb" "Ubuntu_16.04.deb") |
|
|
|
|
|
|
|
|
|
@ -39,11 +39,11 @@ jobs: |
|
|
|
|
echo "DATE=$(date "+%Y/%m/%d %H:%M:%S")" >> $GITHUB_ENV |
|
|
|
|
fi |
|
|
|
|
|
|
|
|
|
- name: Upload to Repo |
|
|
|
|
- name: Upload to repository |
|
|
|
|
uses: stefanzweifel/git-auto-commit-action@v4.16.0 |
|
|
|
|
if: ${{ env.VERSION != '' }} |
|
|
|
|
with: |
|
|
|
|
commit_message: Sync WGCF to V${{ env.VERSION }} by Github Actions, ${{ env.DATE }} |
|
|
|
|
commit_message: Sync Client to V${{ env.VERSION }} by Github Actions, ${{ env.DATE }} |
|
|
|
|
|
|
|
|
|
- name: Release binaries |
|
|
|
|
uses: softprops/action-gh-release@v1 |
|
|
|
|
|