owretch/Create Verified Commit and Tag
Create verified commits and annotated tags via GraphQL. JavaScript action. Supports glob filters and commit-if-changed.
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| token | GitHub token (GITHUB_TOKEN or GitHub App installation token) with contents:write permission | yes | — |
| commit-message | Commit message. First line becomes the headline; remaining lines become the body. | yes | — |
| ref | Target branch name to commit to (e.g. main, feature/x). Auto-detected from the event context when omitted: - pull_request: uses the PR head branch - push/workflow_dispatch/schedule: uses the branch from GITHUB_REF Tag events and fork PRs are not supported. | no | "" |
| files | Multiline list of glob patterns to filter which changed files to include. Patterns are matched against paths reported by git status — not the filesystem. When omitted, all workspace changes detected by git status are included. | no | "" |
| tag-name | Annotated tag name to create (e.g. v1.0.0). Omit to skip tagging. | no | "" |
| tag-message | Annotated tag message. Defaults to the commit message when omitted. | no | "" |
| fail-on-empty | Fail the action if no changed files are detected. Set to false for commit-if-changed patterns. | no | true |
Outputs
| name | description |
|---|---|
| commit-sha | SHA of the created commit. Empty if no changes were committed. |
| tag-sha | SHA of the created tag object. Empty if no tag was created. |
| committed | true if a commit was created, false if the changeset was empty and fail-on-empty is false. |