60 lines
1.8 KiB
YAML
60 lines
1.8 KiB
YAML
name: Add & Commit
|
|
description: Add & commit files from a path directly from GitHub Actions
|
|
|
|
inputs:
|
|
add:
|
|
description: Arguments for the git add command
|
|
required: false
|
|
default: '.'
|
|
author_name:
|
|
description: The name of the user that will be displayed as the author of the commit
|
|
required: false
|
|
default: ${{ github.actor }}
|
|
author_email:
|
|
description: The email of the user that will be displayed as the author of the commit
|
|
required: false
|
|
default: ${{ github.actor }}@users.noreply.github.com
|
|
branch:
|
|
description: Name of the branch to use, if different from the one that triggered the workflow
|
|
required: false
|
|
cwd:
|
|
description: The directory where your repository is located. You should use actions/checkout first to set it up
|
|
required: false
|
|
default: '.'
|
|
message:
|
|
description: The message for the commit
|
|
required: false
|
|
pull_strategy:
|
|
description: The flag used on the pull strategy
|
|
required: false
|
|
default: '--no-rebase'
|
|
push:
|
|
description: Whether to push the commit and, if any, its tags to the repo. It can also be used to set the git push arguments (more info in the README)
|
|
required: false
|
|
default: 'true'
|
|
remove:
|
|
description: Arguments for the git rm command
|
|
required: false
|
|
signoff:
|
|
description: Whether to use the --signoff option on git commit
|
|
required: false
|
|
tag:
|
|
description: Arguments for the git tag command (the tag name always needs to be the first word not preceded by a hyphen)
|
|
required: false
|
|
|
|
outputs:
|
|
committed:
|
|
description: Whether the action has created a commit.
|
|
pushed:
|
|
description: Whether the action has pushed to the remote.
|
|
tagged:
|
|
description: Whether the action has created a tag.
|
|
|
|
runs:
|
|
using: node12
|
|
main: lib/index.js
|
|
|
|
branding:
|
|
icon: git-commit
|
|
color: gray-dark
|