diff --git a/.github/workflows/sync.yml b/.github/workflows/sync.yml new file mode 100644 index 0000000..5749911 --- /dev/null +++ b/.github/workflows/sync.yml @@ -0,0 +1,16 @@ +name: Sync + +on: + push: + branches: [master] + +jobs: + contributors: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: adambirds/sync-github-to-gitlab-action@v1.1.0 + with: + destination_repository: git@jihulab.com:nezha/dashboard.git + destination_branch_name: master + destination_ssh_key: ${{ secrets.GITLAB_SSH_KEY }} diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index ba5998f..79a5495 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -8,6 +8,7 @@ on: - ".github/workflows/codeql-analysis.yml" - ".github/workflows/test-on-pr.yml" - ".github/workflows/contributors.yml" + - ".github/workflows/sync.yml" - "README.md" - ".goreleaser.yml"