{"id":17302497,"url":"https://github.com/azulgarza/sync-repos","last_synced_at":"2026-03-19T00:39:42.296Z","repository":{"id":174840111,"uuid":"652854007","full_name":"AzulGarza/sync-repos","owner":"AzulGarza","description":"Github action to sync files among multiple repos ","archived":false,"fork":false,"pushed_at":"2023-06-14T01:41:46.000Z","size":76,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-01T04:16:39.279Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/AzulGarza.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2023-06-12T23:45:22.000Z","updated_at":"2023-09-09T12:59:05.000Z","dependencies_parsed_at":"2023-07-05T19:49:22.018Z","dependency_job_id":null,"html_url":"https://github.com/AzulGarza/sync-repos","commit_stats":null,"previous_names":["federicogarza/sync-repos","azulgarza/sync-repos"],"tags_count":10,"template":false,"template_full_name":"rethab/bash-action","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AzulGarza%2Fsync-repos","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AzulGarza%2Fsync-repos/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AzulGarza%2Fsync-repos/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AzulGarza%2Fsync-repos/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AzulGarza","download_url":"https://codeload.github.com/AzulGarza/sync-repos/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245744551,"owners_count":20665285,"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":[],"created_at":"2024-10-15T11:47:44.888Z","updated_at":"2026-01-06T15:08:05.508Z","avatar_url":"https://github.com/AzulGarza.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# Sync Repos Action\n\nSync Repos Action is a GitHub Action designed to synchronize files or directories across multiple repositories. This action is particularly useful for maintaining consistency across various repos by automatically propagating changes from a source path to a target path in different repositories.\n\n## Usage\n\nThis action can be referenced in your workflow file with:\n\n```yaml\n- uses: AzulGarza/sync-repos@main\n  with:\n    target-repo: target/repo\n    target-path: target/path\n    source-path: source/path\n    branch-name: new-branch\n    github-token: ${{ secrets.GITHUB_TOKEN }}\n    commit-message: 'Commit message'\n    base-branch: main\n    label: documentation\n    user-email: user@example.com\n    user-name: username\n```\nReplace parameters as needed.\n\n## Inputs\n\nThis action requires the following inputs:\n\n- `target-repo`: The GitHub repository where the files or directories need to be updated. _(required)_\n\n- `target-path`: The path of the target file or directory in the target repository where the changes need to be reflected. This can be a file or a directory. _(required)_\n\n- `source-path`: The local path of the file or directory that contains the changes to be propagated. This can be a file or a directory. _(required)_\n\n- `branch-name`: The name of the new branch to be created for the changes. _(required)_\n\n- `github-token`: A GitHub token with appropriate permissions to create and manage PRs. Typically, you would use the GitHub provided `secrets.GITHUB_TOKEN`. _(required)_\n\n- `commit-message`: The message for the commit that includes the changes. _(required)_\n\n- `base-branch`: The branch that the changes should be based off of. If not provided, defaults to 'main'. _(optional)_\n\n- `label`: The labels to be applied to the PR for better categorization. Defaults to 'documentation' if not provided. _(optional)_\n\n- `user-email`: The email address associated with the GitHub account performing the action. This will be used to associate the commits and pull request with this user. _(required)_\n\n- `user-name`: The username of the GitHub account performing the action. This will be reflected in the commits and pull request. _(required)_\n\n## Outputs\n\nThis action does not have any outputs. However, successful execution will result in a pull request being created on the target repository with the propagated changes.\n\n## Example Workflow\n\nHere's an example of how you might use this action in a workflow:\n\n```yaml\nname: Sync Repos Workflow\non:\n  push:\n    branches:\n      - main\n\njobs:\n  sync:\n    runs-on: ubuntu-latest\n    steps:\n      - name: Checkout code\n        uses: actions/checkout@v2\n\n      - name: Sync Repos\n        uses: AzulGarza/sync-repos@main\n        with:\n          target-repo: target/repo\n          target-path: target/path\n          source-path: source/path\n          branch-name: sync-branch\n          github-token: ${{ secrets.GITHUB_TOKEN }}\n          commit-message: 'Sync files'\n          base-branch: main\n          label: sync\n          user-email: user@example.com\n          user-name: username\n```\n\nRemember to replace the placeholders with actual values.\n\n## Questions or Issues\n\nIf you have any questions or face any issues, please open a new issue in the action repository.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fazulgarza%2Fsync-repos","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fazulgarza%2Fsync-repos","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fazulgarza%2Fsync-repos/lists"}