feat: Add path and pull inputs, committed output to commit action#298
Open
fnesveda wants to merge 2 commits into
Open
feat: Add path and pull inputs, committed output to commit action#298fnesveda wants to merge 2 commits into
path and pull inputs, committed output to commit action#298fnesveda wants to merge 2 commits into
Conversation
janbuchar
reviewed
May 14, 2026
| outputs: | ||
| commit-sha: | ||
| description: 'The SHA of the created commit.' | ||
| description: 'The SHA of the created commit. Empty when `committed` is `false`.' |
Contributor
There was a problem hiding this comment.
Actually, it would be an easy minor win over EndBug/add-and-commit if this returned the current HEAD in case committed === false.
path and pull inputs, committed output to `commit actionpath and pull inputs, committed output to commit action
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
In https://github.com/apify/store-website-content-crawler/pull/753#discussion_r3240499474, we've decided to add a few inputs and outputs to the shared
commitaction to enable easier usage of it.They are:
pathinput: which files should be staged before the commitpullinput: whether to callgit pullbefore the commit and with what parameterscommittedoutput:true/falsewhether the commit actually happened, or whether there were no changesThey mirror the interface of
EndBug/add-and-commitfor an easier migration from that action.