{"id":28250415,"url":"https://github.com/90dy/gha-git-sync","last_synced_at":"2025-06-14T01:32:15.400Z","repository":{"id":196586901,"uuid":"686874796","full_name":"90dy/gha-git-sync","owner":"90dy","description":"🔄 Simplify collaboration and development by efficiently syncing the latest updates from another repository with the Git Sync from 90dy GitHub Action.","archived":false,"fork":false,"pushed_at":"2023-11-09T18:11:10.000Z","size":27,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-19T14:19:42.314Z","etag":null,"topics":["git","repository-template","sync","updates"],"latest_commit_sha":null,"homepage":"","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"unlicense","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/90dy.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null},"funding":{"github":["90dy"],"patreon":null,"open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"custom":null}},"created_at":"2023-09-04T06:13:39.000Z","updated_at":"2023-11-07T13:57:28.000Z","dependencies_parsed_at":"2023-10-16T02:52:48.996Z","dependency_job_id":"c814276f-9835-41aa-b2ab-6d5a1a779619","html_url":"https://github.com/90dy/gha-git-sync","commit_stats":null,"previous_names":["90dy/gha-pull-templates","90dy/gha-git-sync"],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/90dy/gha-git-sync","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/90dy%2Fgha-git-sync","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/90dy%2Fgha-git-sync/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/90dy%2Fgha-git-sync/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/90dy%2Fgha-git-sync/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/90dy","download_url":"https://codeload.github.com/90dy/gha-git-sync/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/90dy%2Fgha-git-sync/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259745196,"owners_count":22905063,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["git","repository-template","sync","updates"],"created_at":"2025-05-19T14:18:04.802Z","updated_at":"2025-06-14T01:32:15.388Z","avatar_url":"https://github.com/90dy.png","language":null,"funding_links":["https://github.com/sponsors/90dy"],"categories":[],"sub_categories":[],"readme":"# Git Sync Github Action\n\n![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/90dy/gha-git-sync/release.yml)\n![GitHub release (latest SemVer)](https://img.shields.io/github/v/release/90dy/gha-git-sync)\n\nThis GitHub Action enables you to synchronize the latest changes from another repository, streamlining your development process.\n\n## Usage\n\nTo use this GitHub Action, add the following YAML code to your workflow file (e.g., `.github/workflows/git-sync.yml`):\n\n```yaml\nname: Git Sync\n\non:\n  push:\n    branches:\n      - main\n\njobs:\n  sync:\n    runs-on: ubuntu-latest\n\n    steps:\n      - name: Checkout Code\n        uses: actions/checkout@v4\n        with:\n          branch: main # Branch to sync in\n\n      - name: Git Sync\n        uses: 90dy/gha-git-sync@v1\n        with:\n          repository: '' # Repository to pull from\n          branch: '' # Branch to sync from\n          user-email: '' # Git user email\n          user-name: '' # Git user name\n          paths: | # File path to sync (not directories)\n            file-a.txt\n            file-b.txt\n          commit-message: '' # Commit message\n          assignees: '' # A comma or newline-separated list of assignees (GitHub usernames)\n          remote: '' # The name of the remote to fetch from.\n```\n\nYou can configure the following inputs based on your requirements:\n\n- `repository`: The repository to pull changes from.\n- `branch`: The branch to sync.\n- `user-email`: Your Git user email.\n- `user-name`: Your Git user name.\n- `paths`: (Optional) File path to sync (not directories).\n- `commit-message`: (Optional) Commit message.\n- `assignees`: (Optional) A comma or newline-separated list of assignees (GitHub usernames).\n- `remote`: (Optional)` The name of the remote to fetch from.\n\n## Workflow\n\n1. Set the committer information in the Git configuration.\n2. Fetch the changes from the specified repository and branch.\n3. Checkout to a branch where to make change.\n4. Attempt to rebase the changes.\n5. If the rebase is successful, merge the changes into the current branch.\n6. If the merge is successful, push the changes to the current branch.\n7. If the rebase fails, abort the process.\n8. If the abort is successful, create a pull request to sync the changes.\n\n## License\n\nThis GitHub Action is licensed under the Unlicense License. See the [LICENSE](LICENSE) file for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F90dy%2Fgha-git-sync","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F90dy%2Fgha-git-sync","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F90dy%2Fgha-git-sync/lists"}