Skip to content

Merge pull request #204 from SanctumLabs/dependabot/go_modules/go.mon… #199

Merge pull request #204 from SanctumLabs/dependabot/go_modules/go.mon…

Merge pull request #204 from SanctumLabs/dependabot/go_modules/go.mon… #199

# Ref: https://github.com/wangchucheng/git-repo-sync
name: BitBucket RepoSync
on:
push:
branches:
- main
- develop
jobs:
sync:
runs-on: ubuntu-latest
name: Bitbucket Repo Sync
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Mirror to Bitbucket
uses: wangchucheng/[email protected]
with:
# Such as https://bitbucket.org/SomeUser/some-repo-sync.git
target-url: ${{ secrets.BITBUCKET_REPO_URL }}
# Such as SomeUser
target-username: ${{ secrets.BITBUCKET_USERNAME }}
# You can store token in your project's 'Setting > Secrets' and reference the name here. Such as ${{ secrets.ACCESS_TOKEN }}
target-token: ${{ secrets.BITBUCKET_ACCESS_TOKEN }}