actions-marketplace-validations/publish-to-git
Publish files to a git repository
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stalelast commit Aug 15, 2020
- License
- MIT
Pinned Snippet
uses: actions-marketplace-validations/seanmiddleditch_gha-publish-to-git@a29f91836474205f088d9ba0443c423113d800ae # no releases — HEAD as of 2026-07-13tags can be moved; commit SHAs can't. why a SHA?
Inputs
| name | description | required | default |
|---|---|---|---|
| repository | Destination repository (default: current repository) | — | "" |
| branch | Destination branch | yes | — |
| host | Destination git host | — | github.com |
| github_token | GitHub Token (use `secrets.GITHUB_TOKEN`) | yes | — |
| github_pat | Personal Access Token or other https credentials | — | "" |
| source_folder | Source folder in workspace to copy (default: workspace root) | — | "" |
| target_folder | Target folder in destination branch to copy to (default: repository root) | — | "" |
| commit_author | User Name <email@address> (default: [github.actor]@users.noreply.github.com) | — | "" |
| commit_message | Commit message (default: [workflow] Publish from [repository]:[branch]/[folder]) | — | "" |
| dry_run | Do not push to repository (set to non-empty string to make dry-run) | — | "" |
| working_directory | Working directory for clone (default: random location in `${HOME}`) | — | "" |
| initial_source_folder | Source folder in workspace to copy if branch didnt exist (default: source_folder value) | — | "" |
| initial_commit_message | Commit message if branch didnt exist | — | Initial commit |
Outputs
| name | description |
|---|---|
| commit_hash | Hash of the new commit |
| working_directory | Working directory of temporary repository |