add auto sync ci from github to gitee (#2680)

This commit is contained in:
houseme 2023-06-02 10:05:42 +08:00 committed by GitHub
parent 7bb4ddcfd5
commit b34d560bb7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 30 additions and 2 deletions

View File

@ -21,7 +21,7 @@ jobs:
- name: Set Up Golang Environment
uses: actions/setup-go@v4
with:
go-version: 1.20.3
go-version: 1.20.4
- name: Build CLI Binary
run: |

28
.github/workflows/gitee-sync.yml vendored Normal file
View File

@ -0,0 +1,28 @@
on:
push:
branches:
- main
tags:
- "*"
name: Sync to Gitee
jobs:
run:
name: Run
runs-on: ubuntu-latest
steps:
- name: Checkout source code
uses: actions/checkout@v3
- name: Mirror Github to Gitee
uses: Yikun/hub-mirror-action@v1.2
with:
src: github/gogf
dst: gitee/johng
dst_key: ${{ secrets.GITEE_PRIVATE_KEY }}
dst_token: ${{ secrets.GITEE_TOKEN }}
src_account_type: org
dst_account_type: user
timeout: 600
debug: true
force_update: true
static_list: "gf"

View File

@ -36,7 +36,7 @@ jobs:
golangci:
strategy:
matrix:
go-version: [1.15.x,1.16.x,1.17.x,1.18.x]
go-version: [1.15.x,1.16.x,1.17.x,1.18.x,1.19.x,1.20.x]
name: golangci-lint
runs-on: ubuntu-latest
steps: