andreasaugustin/actions-template-sync

Synchronises changes of the template repository

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Activelast commit Jun 26, 2026
License
MIT

Pinned Snippet

workflow.ymlSHA-pinned
uses: andreasaugustin/actions-template-sync@8a0f668b83c32a0f673353086d74f12b8853d4f5 # v2.5.3

tags can be moved; commit SHAs can't. why a SHA?

namedescriptionrequireddefault
source_gh_tokenGitHub Token for the repo to be synced from. Can be passed in using $\{{ secrets.GITHUB_TOKEN }}no${{ github.token }}
target_gh_tokenGitHub Token for the repo to be synced to. Can be passed in using $\{{ secrets.GITHUB_TOKEN }}no${{ github.token }}
github_tokenGitHub Token for the repo to be synced from. Can be passed in using $\{{ secrets.GITHUB_TOKEN }}no
source_repo_pathRepository path of the templateyes
upstream_branchThe 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 actionchore/template_sync
pr_title[optional] the title of PRs opened by this actionupstream merge template repository
pr_body[optional] the body of PRs opened by this action
pr_labels[optional] comma separated list of pull request labelstemplate_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 mergechore(template): merge template changes :up:
hostname[optional] the hostname of the GitHub repositorygithub.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 updatefalse
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 cleanupfalse
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 GitLabfalse
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 changesfalse
is_git_lfs[optional] set to true if you want to enable git lfsfalse
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 syncedfalse
namedescription
pr_numberThe number of the PR created
pr_branchThe name of the PR branch
template_git_hashThe git hash of the template source repository