name: Sync

on:
  push:
    branches: [master]

jobs:
  sync-to-jihulab:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - uses: adambirds/sync-github-to-gitlab-action@v1.1.0
        with:
          destination_repository: git@gitee.com:naibahq/nezha.git
          destination_branch_name: master
          destination_ssh_key: ${{ secrets.GITLAB_SSH_KEY }}
