linkedinlearning/Update Branches
Copy selected files from one branch to all other branches in the repository.
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| source-branch | Branch to copy files FROM. Defaults to the repository's default branch. | no | "" |
| files | Newline/comma-separated paths, directory prefixes, and/or globs to copy. When empty, a default list is used (LICENSE, NOTICE, README.md, CONTRIBUTING.md, .vscode/, .devcontainer/, .github/). | no | "" |
| include-branches | Glob(s) of target branches to include. Defaults to all branches. | no | * |
| exclude-branches | Glob(s) of target branches to exclude. The source branch is always excluded. | no | "" |
| mode | How changes land: 'push' (commit directly) or 'pr' (open a pull request per branch). | no | push |
| dry-run | If 'true', compute and report planned changes without making any commits/pushes/PRs. | no | false |
| commit-message | Commit message. {source-branch} is substituted. | no | chore: sync shared files from {source-branch} |
| pr-title | Pull request title (pr mode). {source-branch} is substituted. | no | chore: sync shared files from {source-branch} |
| token | Token used for API/Git operations. | no | ${{ github.token }} |
Outputs
| name | description |
|---|---|
| updated-branches | JSON array of branches that received changes. |
| skipped-branches | JSON array of {branch, reason} for skipped/failed branches. |
| summary | Human-readable summary of the run. |