Skip to content

Latest commit

 

History

History
25 lines (22 loc) · 591 Bytes

README.md

File metadata and controls

25 lines (22 loc) · 591 Bytes

Git Repo Sync

name: <action-name>

on: 
  - push
  - delete

jobs:
  sync:
    runs-on: ubuntu-latest
    name: Git Repo Sync
    steps:
    - uses: actions/checkout@v2
      with:
        fetch-depth: 0
    - uses: devtron-labs/git-repo-sync@v0.1.4
      with:
        # Such as https://github.com/devtron-labs/git-repo-sync.git
        target-url: <target-url>
        target-username: <target-username>
        # You can store token in your project's 'Setting > Secrets' and reference the name here. Such as ${{ secrets.ACCESS_TOKEN }}
        target-token: <target-token>