tuftsrt/copy-to-branch
automatically copy content between repository branches
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| source-branch | Branch to copy content from. Defaults to the triggering branch. | no | ${{ github.ref_name }} |
| destination-branch | Branch to copy content to. | yes | — |
| clear-destination | Whether to delete all files from the destination branch before copying. Must be set to "true" for deletion to occur. Other values ignored. | no | false |
| remove-items | Newline-delimited list of glob patters to delete from the destination branch before building. Ignored if destination branch set to be cleared. | no | "" |
| copy | Newline-delimited list of `source|destination` arguments passed to `rsync` and executed using archive mode. Source and destination paths are relative to the repository root and will default to the repository root if not provided or left empty. Commands executed in order provided. | no | "" |
| replace | Newline-delimited list of `find|replace|glob` arguments used to perform string replacement in the copied files. Commands are executed using `sed` in order provided and applied only to files matching the glob pattern. Omitting the glob pattern will apply the replacement to all files. | no | "" |
| commit-message | Message to use when committing changes to the destination branch. Defaults to the SHA of the triggering commit. | no | ${{ github.sha }} |
| use-bot | Whether to use the github-actions[bot] account to commit and push changes. Must be set to "true" for the bot to be used. Other values ignored. (Author of the last commit on the source branch used by default.) | no | false |
Outputs
no outputs