Skip to content
minimize-2

GitHub Action

Sparse checkout action

v1.2.0 Latest version

Sparse checkout action

minimize-2

Sparse checkout action

Sparse checkout a git repository

Installation

Copy and paste the following snippet into your .yml file.

              

- name: Sparse checkout action

uses: snow-actions/[email protected]

Learn more about this action in snow-actions/sparse-checkout

Choose a version

Sparse checkout

Sparse checkout a git repository like actions/checkout.

Usage

name: 'Checkout mono repository'
on:
  push:

jobs:
  checkout:
    runs-on: ubuntu-20.04
    steps:
      - uses: snow-actions/[email protected]
        with:
          patterns: |
            .github

Inputs

See action.yml.

name required description default value
patterns required Write a set of patterns to the sparse-checkout file. -
repository optional Same as actions/checkout ${{ github.repository }}
ref optional Same as actions/checkout ''
token optional Same as actions/checkout ${{ github.token }}
path optional Same as actions/checkout '.'
filter optional filter-spec to omit objects/blobs when fetching ''

Supported

Events

  • Any

Runners

Test

  • ubuntu-*
  • windows-*
  • macos-*