Lokasi ngalangkungan proxy:   [ UP ]  
[Ngawartoskeun bug]   [Panyetelan cookie]                
Skip to content

lfreleng-actions/checkout-gerrit-change-action

Repository files navigation

Gerrit Change Checkout Action

Checkout a mirrored Gerrit change.

checkout-gerrit-change-action

pre-commit.ci status

Inputs

Name Required Default Description
gerrit-refspec True N/A The Gerrit refspec for the change, eg: refs/changes/YY/NNYY/Z
gerrit-project True N/A The project in Gerrit
delay False 10s Delay in seconds to wait to make sure replication has finished
fetch-depth False 1 Number of commits to fetch. 0 indicates all history for all branches and tags
repository False ${{ github.repository }} Repository name with owner. For example actions/checkout
ref False ${{ github.sha }} The branch, tag or SHA to checkout. When checking out the repository that triggered a workflow, defaults to the reference/SHA for that event
token False ${{ github.token }} Personal Access token (PAT) used to fetch the repository
gerrit-url False "" The base URL for the gerrit server; used when ref not found in the GitHub repository
submodules False false Whether to checkout submodules: true to checkout submodules or recursive to recursively checkout submodules

Usage

- uses: lfit/checkout-gerrit-change-action@v0.5
  with:
      # The Gerrit refspec for the change, eg: refs/changes/YY/NNYY/Z
      gerrit-refspec: "refs/changes/40/11540/1"

      # Delay in seconds to wait to make sure replication has finished
      #
      # Default: 10s
      delay: "10s"

      # Number of commits to fetch. 0 indicates all history for all branches
      # and tags.
      #
      # Default: 1
      fetch-depth: "1"

      # Repository name with owner. For example, lfit/checkout-gerrit-change-action
      #
      # Default: ${{ github.repository }}
      repository: ${{ github.repository }}

      # The branch, tag or SHA to checkout. When Checking out the repository
      # that triggered a workflow, this defaults to the reference or SHA for that
      # event. Otherwise, uses the default branch.
      ref: ${{ github.sha }}

      # Personal Access token (PAT) used to fetch the repository. The PAT is
      # configured with the local git config, which enables your scripts to run
      # authenticated git commands. The post-job step removes the PAT.
      #
      # We recommend using a service account with the least permissions necessary.
      # Also, when generating a new PAT, select the least scopes necessary.
      #
      # Default:
      token: ${{ github.token }}

      # The base URL for the gerrit server. Used if the ref can't be
      # found in the GitHub repository
      gerrit-url: ${{ vars.GERRIT_URL }}

      # Whether to checkout submodules: `true` to checkout submodules or
      # `recursive` to recursively checkout submodules.
      #
      # Default: false
      submodules: "false"

About

Checkout a mirrored Gerrit change

Resources

License

Security policy

Stars

Watchers

Forks

Packages

 
 
 

Contributors