andreasaugustin/actions-template-sync
Synchronises changes of the template repository
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Activelast commit Jun 26, 2026
- License
- MIT
Pinned Snippet
uses: andreasaugustin/actions-template-sync@8a0f668b83c32a0f673353086d74f12b8853d4f5 # v2.5.3tags can be moved; commit SHAs can't. why a SHA?
Inputs
| name | description | required | default |
|---|---|---|---|
| source_gh_token | GitHub Token for the repo to be synced from. Can be passed in using $\{{ secrets.GITHUB_TOKEN }} | no | ${{ github.token }} |
| target_gh_token | GitHub Token for the repo to be synced to. Can be passed in using $\{{ secrets.GITHUB_TOKEN }} | no | ${{ github.token }} |
| github_token | GitHub Token for the repo to be synced from. Can be passed in using $\{{ secrets.GITHUB_TOKEN }} | no | — |
| source_repo_path | Repository path of the template | yes | — |
| upstream_branch | The target branch | — | — |
| source_repo_ssh_private_key | [optional] private ssh key for the source repository. E.q. useful if using a private template repository. | — | — |
| pr_branch_name_prefix | [optional] the prefix of branches created by this action | — | chore/template_sync |
| pr_title | [optional] the title of PRs opened by this action | — | upstream merge template repository |
| pr_body | [optional] the body of PRs opened by this action | — | — |
| pr_labels | [optional] comma separated list of pull request labels | — | template_sync |
| pr_reviewers | [optional] comma separated list of pull request reviewers | — | — |
| pr_assignees | [optional] comma separated list of pull request assignees | — | — |
| pr_commit_msg | [optional] the commit message of the template merge | — | chore(template): merge template changes :up: |
| hostname | [optional] the hostname of the GitHub repository | — | github.com |
| is_dry_run | [optional] set to true if you do not want to push the changes and not want to create a PR | — | — |
| is_allow_hooks | [optional] set to true if you want to allow hooks. Use this functionality with caution! | — | false |
| hooks | [optional] define the hooks as yaml string input | — | — |
| is_force_push_pr | [optional] set to true if you want to force push and pr update | — | false |
| is_pr_cleanup | [optional] set to true if you want to cleanup older PRs targeting the same branch. | — | false |
| is_keep_branch_on_pr_cleanup | [optional] set to true if you want to keep the branch when pr is cleanup | — | false |
| is_not_source_github | [optional] set to true if the source repository is not a github related repository. Useful e.q. if the source is GitLab | — | false |
| is_force_deletion | [optional] set to true if you want to force delete files which are deleted within the source repository even if they contain changes | — | false |
| is_git_lfs | [optional] set to true if you want to enable git lfs | — | false |
| git_user_name | [optional] set the committer git user.name for the merge commit | — | — |
| git_user_email | [optional] set the committer git user.email for the merge commit | — | — |
| git_remote_pull_params | [optional] set the pull parameters for the remote repository | — | — |
| gpg_private_key | [optional] set the gpg private key if you want to sign your commits | — | — |
| gpg_passphrase | [optional] set if your private gpg key has a password | — | — |
| steps | [optional] set the steps to execute within the action | — | — |
| template_sync_ignore_file_path | [optional] set the path to the ignore file | — | .templatesyncignore |
| is_with_tags | [optional] set to true if tags should be synced | — | false |
Outputs
| name | description |
|---|---|
| pr_number | The number of the PR created |
| pr_branch | The name of the PR branch |
| template_git_hash | The git hash of the template source repository |