actions-marketplace-validations/Files Sync Action

Copies files from the action's environment (or any other repo) to many other repos.

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Stale
License
None
namedescriptionrequireddefault
COMMIT_MESSAGEThe commit message that will be used to commit the changed files. Check the README for all interpolation options. no
DRY_RUNRun everything except for the copying, removing and commiting functionality. no
FILE_PATTERNSNew line deliminated regex expressions to select files from the source repository. All filpaths start with the repos fullname without a leading slash. The delimiter between path segments is a forward slash. yes
GITHUB_TOKENToken to use to get repos and write secretsyes
GITHUB_SERVERSpecify a GitHub Server other than github.com (for GitHub Enterprise deployment support) no
GIT_EMAILThe e-mail address used to commit the synced files. Defaults to $GITHUB_ACTOR@users.noreply.github.com no
GIT_USERNAMEThe username used to commit the synced files. Defaults to $GITHUB_ACTOR no
SKIP_DELETEWill omit all delete operations for matching files present in `TARGET_REPO` but not existant in `SRC_REPO` if set to `true`. Defaults to `false`. no
SKIP_REPLACEWill omit all write operations for matching files present in `SRC_REPO` and `TARGET_REPO` if set to `true`. Defaults to `false`. no
SKIP_CLEANUPIf set to true or 1, the cleanup step to remove the temporary workding directory at the end will be skipped. Usefull for debugging purposes. no
SRC_REPORepo from where files should be synced from. Defaults to $GITHUB_REPOSITORY. A custom branch can be defined by adding the branchname after a colon behind the SRC_REPO. `repoSlug` or `repoSlug:branchName` no
TARGET_REPOSNew line deliminated list of repositories. Repositires are limited to those in which the token user is an owner or collaborator. A custom branch can be defined for each repo by adding the branchname after a colon behind the repoSlug. `repoSlug` or `repoSlug:branchName` yes
TMPDIRThe working directory where all sync operations will be done. Defaults to `tmp-${Date.now().toString()}` no
SRC_ROOTPrepends this to all filepaths in the source repository. Defaults to `/`. no
TARGET_ROOTPrepends this to all filepaths in the target repository. Defaults to `/`. no

no outputs