mirror of
https://gitlab.com/fscarmen/warp.git
synced 2026-06-15 03:25:42 +08:00
Update warp-go release to the newest.
Former-commit-id: a11c962a0c77d95083b7bc0ed454f87c9ae3d118
This commit is contained in:
@@ -0,0 +1,62 @@
|
||||
name: 'GitHub Actions Mirror'
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
# push:
|
||||
# branches:
|
||||
# - master
|
||||
schedule:
|
||||
- cron: '20 20 * * *'
|
||||
|
||||
jobs:
|
||||
mirror_to_gitlab:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: 'Checkout'
|
||||
uses: actions/checkout@v1
|
||||
- name: 'Mirror to gitlab'
|
||||
uses: pixta-dev/repository-mirroring-action@v1
|
||||
with:
|
||||
target_repo_url:
|
||||
git@gitlab.com:fscarmen/warp.git
|
||||
ssh_private_key:
|
||||
${{ secrets.PRIVATE_KEY }}
|
||||
|
||||
mirror_to_gitlab_project:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: 'Checkout'
|
||||
uses: actions/checkout@v1
|
||||
- name: 'Mirror to gitlab'
|
||||
uses: pixta-dev/repository-mirroring-action@v1
|
||||
with:
|
||||
target_repo_url:
|
||||
git@gitlab.com:ProjectWARP/warp-script.git
|
||||
ssh_private_key:
|
||||
${{ secrets.PRIVATE_KEY }}
|
||||
|
||||
mirror_to_bitbucket:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: 'Checkout'
|
||||
uses: actions/checkout@v1
|
||||
- name: 'Mirror to bitbucket'
|
||||
uses: pixta-dev/repository-mirroring-action@v1
|
||||
with:
|
||||
target_repo_url:
|
||||
git@bitbucket.org:fscarmen/warp.git
|
||||
ssh_private_key:
|
||||
${{ secrets.PRIVATE_KEY }}
|
||||
|
||||
mirror_to_gitee:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: 'Checkout'
|
||||
uses: actions/checkout@v1
|
||||
- name: 'Mirror to gitee'
|
||||
uses: pixta-dev/repository-mirroring-action@v1
|
||||
with:
|
||||
target_repo_url:
|
||||
git@gitee.com:fscarmen/warp.git
|
||||
ssh_private_key:
|
||||
${{ secrets.PRIVATE_KEY }}
|
||||
@@ -28,7 +28,7 @@ jobs:
|
||||
LATEST3=$(echo $LATEST | cut -d \. -f3)
|
||||
NOW_VERSION=$(( NOW1*1000000 + NOW2*1000 + NOW3 ))
|
||||
LATEST_VERSION=$(( LATEST1*1000000 + LATEST2*1000 + LATEST3 ))
|
||||
if [ $LATEST_VERSION -gt $NOW_VERSION ]; then
|
||||
if [ $LATEST_VERSION -ge $NOW_VERSION ]; then
|
||||
PLATFORM=( "linux_386"
|
||||
"linux_amd64"
|
||||
"linux_amd64v2"
|
||||
@@ -44,7 +44,6 @@ jobs:
|
||||
|
||||
for i in "${PLATFORM[@]}"; do
|
||||
wget -NP ${GITHUB_WORKSPACE}/warp-go/ https://gitlab.com/ProjectWARP/warp-go/-/releases/v"$LATEST"/downloads/warp-go_"$LATEST"_"$i".tar.gz
|
||||
rm -f ${GITHUB_WORKSPACE}/warp-go/warp-go_"$NOW"_"$i".tar.gz
|
||||
done
|
||||
|
||||
for j in "${SCRIPTS[@]}"; do
|
||||
|
||||
Reference in New Issue
Block a user