Go to file
Kai Kimera 2d910bb3d0
2024-02-01 04:09:09
2024-02-01 04:09:09 +00:00
.github/workflows 2024-02-01 04:09:09 2024-02-01 04:09:09 +00:00
CHANGELOG.md 2023-07-16 02:00:31 2023-07-16 02:00:31 +00:00
CONTRIBUTING.md 2024-02-01 04:09:09 2024-02-01 04:09:09 +00:00
Dockerfile 2024-02-01 04:09:09 2024-02-01 04:09:09 +00:00
LICENSE 2024-02-01 04:09:09 2024-02-01 04:09:09 +00:00
README.md 2023-07-16 03:29:50 2023-07-16 03:29:50 +00:00
action.yml 2024-02-01 04:09:09 2024-02-01 04:09:09 +00:00
entrypoint.sh 2023-07-16 02:00:31 2023-07-16 02:00:31 +00:00
mirror.sh 2024-02-01 04:09:09 2024-02-01 04:09:09 +00:00

README.md

GitHub Mirror

Universal mirroring repository tool.

Workflow Syntax

GitHub > GitLab

name: "Mirror"

on:
  - push

jobs:
  mirror:
    runs-on: ubuntu-latest
    name: "Mirror"
    steps:
      - uses: ghastore/git-mirror@main
        with:
          src_repo: "https://github.com/${{ github.repository }}.git"
          src_user: "${{ secrets.MIRROR_SOURCE_USER_GITHUB }}"
          src_token: "${{ secrets.MIRROR_SOURCE_TOKEN_GITHUB }}"
          dst_repo: "https://gitlab.com/${{ github.repository }}.git"
          dst_user: "${{ secrets.MIRROR_TARGET_USER_GITLAB }}"
          dst_token: "${{ secrets.MIRROR_TARGET_TOKEN_GITLAB }}"

GitHub > GitHub

name: "Mirror"

on:
  - push

jobs:
  mirror:
    runs-on: ubuntu-latest
    name: "Mirror"
    steps:
      - uses: ghastore/git-mirror@main
        with:
          src_repo: "https://github.com/${{ github.repository }}.git"
          src_user: "${{ secrets.MIRROR_SOURCE_USER_GITHUB }}"
          src_token: "${{ secrets.MIRROR_SOURCE_TOKEN_GITHUB }}"
          dst_repo: "${{ secrets.MIRROR_TARGET_URL_GITHUB }}"
          dst_user: "${{ secrets.MIRROR_TARGET_USER_GITHUB }}"
          dst_token: "${{ secrets.MIRROR_TARGET_TOKEN_GITHUB }}"

Legend

  • src_repo - source repository URL.
  • src_user - source user.
  • src_token - source token.
  • dst_repo - destination repository URL.
  • dst_user - destination user.
  • dst_token - destination token.