Merge pull request #223 from SanctumLabs/dependabot/go_modules/github… #215
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 }} |