https://github.com/qoomon/actions--create-commit
GitHub Action to create signed commits from within a GitHub Action workflow
https://github.com/qoomon/actions--create-commit
action commit git github-actions sign verified
Last synced: about 1 month ago
JSON representation
GitHub Action to create signed commits from within a GitHub Action workflow
- Host: GitHub
- URL: https://github.com/qoomon/actions--create-commit
- Owner: qoomon
- License: mit
- Created: 2024-02-26T20:10:15.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2025-04-14T10:46:43.000Z (about 1 month ago)
- Last Synced: 2025-04-14T23:43:19.736Z (about 1 month ago)
- Topics: action, commit, git, github-actions, sign, verified
- Language: TypeScript
- Homepage:
- Size: 1.02 MB
- Stars: 15
- Watchers: 2
- Forks: 2
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Create Commit [](https://github.com/qoomon/actions)
This action will create a new commit via GitHub API, committer and author are related to given token identity.
Commits getting signed, if a GitHub App token (`ghs_***`) is used and will be marked as `verified` in the GitHub web interface.### Example
```yaml
jobs:
example:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.ref }}
- run: |
date > dummy.txt
git add dummy.txt- uses: qoomon/actions--create-commit@v1
id: commit
with:
message: work work
skip-empty: true- if: ${{ steps.commit.outputs.commit }}
run: git push
```### Inputs
```yaml
inputs:
message:
description: 'The commit message'
required: true
amend:
description: 'Amend the last commit'
default: false
allow-empty:
description: 'Allow an empty commit'
default: false
skip-empty:
description: 'Skip action, if nothing to commit'
default: falsetoken:
description: 'A GitHub access token'
required: true
default: ${{ github.token }}
working-directory:
description: 'The working directory'
required: true
default: '.'
remoteName:
description: 'The remote name to create the commit at.'
required: true
default: 'origin'
```### Outputs
```yaml
outputs:
commit:
description: 'The commit hash, if a commit was created'
```## Development
### Release New Action Version
Trigger [Release Version workflow](/actions/workflows/action-release.yaml)