hanseltimeindustries/template-repo-sync-action
Action for taking the files in a template repo and synchronizing them to the repo via a PR
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Activelast commit Mar 4, 2026
- License
- None
Pinned Snippet
uses: hanseltimeindustries/template-repo-sync-action@8124dd25e335aea2671e7d274d353742c9c1ad91 # v2.1.2tags can be moved; commit SHAs can't. why a SHA?
Inputs
| name | description | required | default |
|---|---|---|---|
| repoPath | The owner/repo path of the repo on github | yes | — |
| githubToken | The github token with access to write pull requests on this repo | yes | — |
| remoteRepoToken | A separate github token with permissions to clone from the other repo. Only needed for private repos | no | — |
| repoRoot | The root in this github repo that we are syncing. This is mainly for things like monorepos. | no | — |
| templateBranch | The branch on the template that we want to sync to | yes | — |
| branchPrefix | A short branch prefix for the branch that will be created in order to store the changes | no | — |
| commitMsg | The commit message to supply when making the merge commits | no | — |
| titleMsg | The title of the pull request | no | — |
| prToBranch | This is the branch to open the pull request to. If not set, this uses the repo's default branch. | no | — |
| updateAfterRef | Whether we want to override the templatesync.local.json file with the template repo's last sha from the sync | no | true |
| mockLocalConfig | For testing, this is a templatesync.config.json that overrides the file that might be on the branch | no | — |
Outputs
| name | description |
|---|---|
| prNumber | The number of the created PR |