Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- name: Sync Repositories
- on:
- push:
- branches:
- - main # Adjust based on your branch names
- jobs:
- sync:
- runs-on: ubuntu-latest
- steps:
- - name: Checkout Repository
- uses: actions/checkout@v3
- - name: Push to Other Repository
- run: |
- git remote add other-repo <URL_of_other_repo>
- git push other-repo HEAD:main --follow-tags --force
- env:
- PAT_TOKEN: ${{ secrets.PAT_TOKEN }}
Advertisement
Comments
-
- test action that should be run on both sides of two duplicate repos to maintain same version on both ends regardless of where a commit is pushed
Add Comment
Please, Sign In to add comment
Advertisement