actions-marketplace-validations/Files Sync Action
Copies files from the action's environment (or any other repo) to many other repos.
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| COMMIT_MESSAGE | The commit message that will be used to commit the changed files. Check the README for all interpolation options. | no | — |
| DRY_RUN | Run everything except for the copying, removing and commiting functionality. | no | — |
| FILE_PATTERNS | New 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_TOKEN | Token to use to get repos and write secrets | yes | — |
| GITHUB_SERVER | Specify a GitHub Server other than github.com (for GitHub Enterprise deployment support) | no | — |
| GIT_EMAIL | The e-mail address used to commit the synced files. Defaults to $GITHUB_ACTOR@users.noreply.github.com | no | — |
| GIT_USERNAME | The username used to commit the synced files. Defaults to $GITHUB_ACTOR | no | — |
| SKIP_DELETE | Will 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_REPLACE | Will omit all write operations for matching files present in `SRC_REPO` and `TARGET_REPO` if set to `true`. Defaults to `false`. | no | — |
| SKIP_CLEANUP | If 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_REPO | Repo 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_REPOS | New 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 | — |
| TMPDIR | The working directory where all sync operations will be done. Defaults to `tmp-${Date.now().toString()}` | no | — |
| SRC_ROOT | Prepends this to all filepaths in the source repository. Defaults to `/`. | no | — |
| TARGET_ROOT | Prepends this to all filepaths in the target repository. Defaults to `/`. | no | — |
Outputs
no outputs