我想自动从Bitbucket仓库推送到Github仓库。这应该发生在Bitbucket中某个分支的任何提交/推送上。就我的理解而言,这可能可以通过Webhook实现。在Bitbucket中,我只能为一个URL创建一个网络钩子。有没有办法在Bitbucket网络钩子中钩子一个脚本?或者怎么可能?
llycmphe1#
name: Mirroring on: [push, delete] jobs: to_gitlab: runs-on: ubuntu-latest steps: # <-- must use actions/checkout before mirroring! - uses: actions/checkout@v2 with: fetch-depth: 0 - uses: pixta-dev/repository-mirroring-action@v1 with: target_repo_url: git@gitlab.com:<username>/<target_repository_name>.git ssh_private_key: # <-- use 'secrets' to pass credential information. ${{ secrets.GITLAB_SSH_PRIVATE_KEY }}
1条答案
按热度按时间llycmphe1#