Skip to content

Synchronize Your Git Repository to other VCS Platforms like Gitlab, Bitbucket, etc.

License

Notifications You must be signed in to change notification settings

offensive-vk/auto-repo-sync

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Auto Repo Sync

This Action Auto Repo Sync enables you to synchronize code to other code management platforms, such as GitLab, Github, Bitbucket etc.

Example

You can use the following example as a template to create a new file with any name under .github/workflows/.

name: Sync

on: 
  push:
    branches:
      - main
  delete

jobs:
  sync:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
        with:
          fetch-depth: 0

      - uses: offensive-vk/auto-repo-sync@v7
        with:
          target-url: https://gitlab.com/<user>/<repo>.git
          target-username: ${{ secrets.TARGET_USERNAME }}
          target-token: ${{ secrets.TARGET_TOKEN }}

Note: Store sensitive values like TARGET_USERNAME and TARGET_TOKEN as secrets under Settings > Secrets and variables > Actions in your repository.


© Vedansh 2023 - Present
Licensed under MIT License

Thanks for visiting :)