amezin/Create detached commit
Create a detached commit through GitHub API
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| message | Commit message | yes | — |
| files | Files to add/update. Supports wildcard patterns. | yes | — |
| parent | Parent commit SHA | yes | ${{ github.sha }} |
| repository | Repository name with owner | yes | ${{ github.repository }} |
| toplevel | Top-level directory of the repository | yes | . |
| github-token | GitHub API token to use | yes | ${{ github.token }} |
| max-inline-blob-size | Files larger than this (in encoded form) will be uploaded with separate API requests. The size is specified in bytes, with optional K or M suffix. Note: non-UTF-8 files are always uploaded in separate requests. | yes | 1M |
Outputs
| name | description |
|---|---|
| sha | SHA of the created commit |
| url | API URL of the created commit |
| html_url | Browser URL of the created commit |
| commit | Commit object as JSON |
| tree | Tree object as JSON |
| tree_sha | SHA of the created Git tree |
| tree_url | API URL of the created Git tree |