This action creates a Git commit from any changes made from the other steps in an action. Great for shipping docs to GitHub Pages. Paired with something to push the resulting commit, like ad-m/github-push-action, or something to tag, like zwaldowski/semver-release-action.
Optional The directory to perform all operations in. Defaults to the repository root.
Optional A specific message to use for the commit.
Optional A name to assign as the author of the commit.
Optional An email address to assign as the author of the commit.
The commit hash for the created commit. Use to create a ref pointing specifically to this new commit.
- id: git_commit
uses: zwaldowski/git-commit-action@v1
- run: echo "${{ steps.git_commit.outputs.sha }}"