Skip to content

Latest commit

 

History

History
41 lines (32 loc) · 1.02 KB

File metadata and controls

41 lines (32 loc) · 1.02 KB

Adds content to the git stage

A composite action for adding content to the git stage.

Inputs

Name Description Default
path The path or paths to the content to add "."

Outputs

Name Description
staged true if any output was staged; false otherwise

Example

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 }}