A composite action for adding content to the git stage.
| Name | Description | Default |
|---|---|---|
path |
The path or paths to the content to add | "." |
| Name | Description |
|---|---|
staged |
true if any output was staged; false otherwise |
Here is a very basic example of how to use the git/add composite action
in a project (placeholders are used in place of real inputs):
run:
example-job:
# ...
steps:
# ...
- name: Adds content to the git stage
id: git-add # only necessary if using this action's output
uses: bitwizeshift/actions-github/git/add@v1
with:
# Optional inputs
path: PATH
# ...
- name: Uses "Adds content to the git stage" Outputs
uses: example-actions/use-git-add@v3 # illustrative
with:
use-staged: ${{ steps.git-add.outputs.staged }}