Skip to content
This repository has been archived by the owner on Apr 8, 2024. It is now read-only.

Merge pull request #2 from csplink/dev #48

Merge pull request #2 from csplink/dev

Merge pull request #2 from csplink/dev #48

Workflow file for this run

#
# Licensed under the GNU General Public License v. 3 (the "License");
# You may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.gnu.org/licenses/gpl-3.0.html
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# Copyright (C) 2023-2023 xqyjlj<xqyjlj@126.com>
#
# @author xqyjlj
# @file mirror.yml
#
# Change Logs:
# Date Author Notes
# ------------ ---------- -----------------------------------------------
# 2023-07-10 xqyjlj initial version
#
name: mirror
on:
push:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
mirror:
name: πŸ’• mirror to another location
runs-on: ubuntu-latest
steps:
- name: πŸ’• mirror to gitee
uses: csplink/action_git_mirror/@master
with:
ssh_private_key: ${{ secrets.SSH_PRIVATE_KEY }}
dest_token: ${{ secrets.GITEE_TOKEN }}
dest: gitee
- name: πŸ’• mirror to coding
uses: csplink/action_git_mirror/@master
with:
ssh_private_key: ${{ secrets.SSH_PRIVATE_KEY }}
dest_token: ${{ secrets.CODING_TOKEN }}
dest_repo: git@e.coding.net:csplink/csplink/csp_repo.git
dest: coding
- name: πŸ’• mirror to gitlab
uses: csplink/action_git_mirror/@master
with:
ssh_private_key: ${{ secrets.SSH_PRIVATE_KEY }}
dest_token: ${{ secrets.GITLAB_TOKEN }}
dest_repo: git@gitlab.com:csplink/csp_repo.git
dest: gitlab