{"id":23709909,"url":"https://github.com/nxtlvlsoftware/git-subtree-action","last_synced_at":"2025-10-22T10:51:57.860Z","repository":{"id":43830714,"uuid":"277216434","full_name":"NxtLvLSoftware/git-subtree-action","owner":"NxtLvLSoftware","description":"Keep a git subtree in sync using the actions pipeline.","archived":false,"fork":false,"pushed_at":"2022-12-04T02:05:01.000Z","size":38,"stargazers_count":16,"open_issues_count":1,"forks_count":10,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-12-17T09:21:58.872Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/NxtLvLSoftware.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-07-05T02:17:11.000Z","updated_at":"2023-12-03T16:48:28.000Z","dependencies_parsed_at":"2023-01-11T17:22:28.297Z","dependency_job_id":null,"html_url":"https://github.com/NxtLvLSoftware/git-subtree-action","commit_stats":{"total_commits":28,"total_committers":3,"mean_commits":9.333333333333334,"dds":0.1428571428571429,"last_synced_commit":"fb66dcc42b27b0188fc7979107075f156c307886"},"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NxtLvLSoftware%2Fgit-subtree-action","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NxtLvLSoftware%2Fgit-subtree-action/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NxtLvLSoftware%2Fgit-subtree-action/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NxtLvLSoftware%2Fgit-subtree-action/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/NxtLvLSoftware","download_url":"https://codeload.github.com/NxtLvLSoftware/git-subtree-action/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":231902080,"owners_count":18443330,"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-12-30T18:58:53.908Z","updated_at":"2025-10-22T10:51:52.832Z","avatar_url":"https://github.com/NxtLvLSoftware.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# git-subtree-action\nThe source for the git-subtree github action.\n\n## About\nThis repository contains the source code for the git-subtree action that allows you to easily keep a git subtree in sync\nusing the actions pipeline.\n\n## Usage\n\n### Action Inputs\n| Input        | Description                                                                                                                         |\n| ------------ | -------------------------------------------------------------------------------------                                               |\n| repo         | Child repository to sync the subtree to (eg. owner/repository.)                                                                     |\n| path         | Path prefix in parent repo to split into child subtree (eg. src/PackageName.)                                                       |\n| deploy_key   | Deployment (public) SSH key for pushing to child repo (use deployment tokens for single repos or bot accounts for multi-repos/orgs.)|\n| tag          | Create (or mirror) a tag on the child subtree repository (branch or tag ref that triggered the workflow when true.)                 |\n| force        | Force push to the child subtree repository (recommended for pure downstream mirrors.)                                               |\n| branch       | Branch of child subtree repository (default is branch or tag ref that triggered the workflow.)                                      |\n\n\n### Workflow Examples\nThis example uses a matrix to sync a list of namespaces into child subtree repos.\n\n```yaml\nname: subtree-matrix\n\non: [push]\n\njobs:\n  sync-downstream:\n\n    runs-on: ubuntu-latest\n\n    strategy:\n      fail-fast: false\n      matrix:\n        path:\n          - command\n          - database\n          - support\n\n    name: Update downstream ${{ matrix.path }} package\n\n    steps:\n      - uses: actions/checkout@v2\n        with:\n          fetch-depth: 0\n      - uses: nxtlvlsoftware/git-subtree-action@1.1\n        with:\n          repo: 'nxtlvlsoftware/${{ matrix.path }}'\n          path: 'src/${{ matrix.path }}'\n          deploy_key: ${{ secrets.DOWNSTREAM_GITHUB_DEPLOY_KEY }}\n          force: true # will force push to the downstream repository\n```\n\n### Syncing tags\nYou can also keep tags/releases in sync by using the `tag` input option.\n\n```yaml\nname: subtree-package\n\non:\n  release:\n    types: [published]\n\njobs:\n  sync-downstream:\n\n    runs-on: ubuntu-latest\n\n    name: Update downstream repository\n\n    steps:\n      - uses: actions/checkout@v2\n        with:\n          fetch-depth: 0\n      - uses: nxtlvlsoftware/git-subtree-action@1.1\n        with:\n          repo: 'nxtlvlsoftware/my-fancy-package'\n          path: 'packages/fancy-package'\n          deploy_key: ${{ secrets.DOWNSTREAM_GITHUB_DEPLOY_KEY }}\n          tag: true # will use the tag name from the event if true is specified\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnxtlvlsoftware%2Fgit-subtree-action","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnxtlvlsoftware%2Fgit-subtree-action","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnxtlvlsoftware%2Fgit-subtree-action/lists"}