Action: Checks out a git repository
- Shell 100%
| .reuse | ||
| LICENSES | ||
| action.yaml | ||
| ci-checkout | ||
| README.md | ||
Shrimp CI checkout
Barebones reimplementation of the github checkout action in posix shell.
It currently only supports plain git repositories but no submodules nor lfs.
Noteworthy dependencies:
gittrurl
You probably already have a line in your CI that installs dependencies, add them there. Make sure you're installing them before using this action.
Usage
- uses: https://codeberg.org/shrimp-ci/checkout@v1
with:
# The branch, tag or commit hash to check out.
# By default it checks out the commit that triggered the CI.
ref: ''
# Relative path to the CI workspace or absolute path in the image
# to checkout the repository in.
# Defaults to checking out directly in the CI workspace.
path: ''
# Number of commits to fetch. Specifying 0 will fetch all commits.
# The default is to only fetch the one most relevant commit.
fetch-depth: 1
License
This action is licensed under an AGPL-3.0-only license.
You can freely use it. The license ensures that it stays that way.