flex-development/gh-commit
Create commits with the GitHub API
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| api | Base URL of GitHub API | no | ${{ github.api_url }} |
| files | Newline-delimited list of changed file filters. Each filter should be a file path relative to inputs.workspace. All detected changes will be committed if file filters are not provided. Files will be checked against `git status --porcelain --untracked-files` | no | — |
| message | Commit message | yes | — |
| owner | Repository owner | no | ${{ github.repository_owner }} |
| ref | Name of branch to push commit to | no | ${{ github.event.workflow_run.head_branch || github.head_ref || github.ref }} |
| repo | Repository name | no | ${{ github.event.repository.name }} |
| token | Personal access token (PAT) used to authenticate GitHub API requests | no | ${{ github.token }} |
| trailers | Newline-delimited list of git trailers | no | — |
| workspace | Path to current working directory | no | ${{ github.workspace }} |
Outputs
| name | description |
|---|---|
| sha | SHA of created commit, or an empty string if a commit was not created |