mirror of
https://gitee.com/SuperManito/LinuxMirrors
synced 2025-11-02 23:40:25 +08:00
26 lines
732 B
YAML
26 lines
732 B
YAML
name: Sync to mirror repo
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
jobs:
|
|
repo-sync:
|
|
env:
|
|
dst_key: ${{ secrets.GITEE_PRIVATE_KEY }}
|
|
dst_token: ${{ secrets.GITEE_TOKEN }}
|
|
gitee_user: ${{ secrets.GITEE_USER }}
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
with:
|
|
persist-credentials: false
|
|
- name: sync to gitee
|
|
uses: Yikun/hub-mirror-action@master
|
|
if: env.dst_key && env.dst_token && env.gitee_user
|
|
with:
|
|
src: github/SuperManito
|
|
dst: gitee/SuperManito
|
|
dst_key: ${{ secrets.GITEE_PRIVATE_KEY }}
|
|
dst_token: ${{ secrets.GITEE_TOKEN }}
|
|
static_list: "LinuxMirrors"
|
|
force_update: true |