lfreleng-actions/checkout-gerrit-change
Checkout a mirrored Gerrit change
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| gerrit-refspec | The Gerrit refspec for the change, eg: refs/changes/YY/NNYY/Z | yes | — |
| gerrit-project | The project in Gerrit | yes | — |
| delay | Delay in seconds to wait to make sure replication has finished. Default: 10s | no | 10s |
| fetch-depth | Number of commits to fetch. 0 indicates all history for all branches and tags. Default 1 | no | 1 |
| repository | Repository name with owner. For example actions/checkout | no | ${{ github.repository }} |
| ref | 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. | no | ${{ github.sha }} |
| token | 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. | — | ${{ github.token }} |
| gerrit-url | The base URL for the gerrit server. This is used if ref can't be found in the GitHub repository | no | "" |
| submodules | Whether to checkout submodules: `true` to checkout submodules or `recursive` to recursively checkout submodules. Default: false | — | false |
Outputs
no outputs