actions-marketplace-validations/tags-sync

Sync another repository new tags as branches. (upstream -> fork)

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Stalelast commit Sep 23, 2022
License
None

Pinned Snippet

workflow.ymlSHA-pinned
uses: actions-marketplace-validations/chachako_tags-sync@c82db2f78e9f713cc18727cdcc8864c9de8fbaa9 # no releases — HEAD as of 2026-07-10

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

namedescriptionrequireddefault
github-tokenPersonal access token (PAT) used to fetch and push the "head-repository". We recommend using a service account with the least permissions necessary. Also when generating a new PAT, select the least scopes necessary. [Learn more about creating and using encrypted secrets](https://help.github.com/en/actions/automating-your-workflow-with-github-actions/creating-and-using-encrypted-secrets) yes
base-repositoryBase (upstream) repository name with owner. For example, torvalds/linuxyes
head-repositoryHead (fork) repository name with owner. For example, Rust-for-Linux/linux${{ github.repository }}
cloned-pathRelative path under $GITHUB_WORKSPACE to clone the head repositoryhead-repo
filter-tagsFilter tags by regular expression. For example, the regex "^v[2-9]\..*" controls tags that only sync versions larger than `v2`. .*
apply-patchURL of patch file to be applied after each tag is synced as a branch. Patch url can usually be obtained by comparing two branches or commits. The process of applying patch occurs before the "git push", so if the value is empty, it means that all new branches will be pushed directly to the "head-repository" after the tags are synced. The value based on the [URL Standard](https://url.spec.whatwg.org/). For example, apply all commits that the "head-repository" master branch is ahead of the "base-repository" master branch to each new tag: https://github.com/base-owner/base-repository/compare/master...head-owner:head-repository:master.patch
patch-messageCommit message for "git commit" when applying patch""
patch-authorAuthor for "git commit" when applying patchgithub-actions[bot]
patch-author-emailAuthor email for "git commit" when applying patchgithub-actions[bot]@users.noreply.github.com
patch-committerCommitter for "git commit" when applying patchgithub-actions[bot]
patch-committer-emailCommitter email for "git commit" when applying patchgithub-actions[bot]@users.noreply.github.com
namedescription
new-tags-fileA file stores the name of each new tag of the "base-repository" by line.
synced-branches-fileA file stores the name of each new branch of the "head-repository" by line, and all new branches are synchronized from new tags of the "base-repository".