Action: Checks out a git repository
Find a file
2025-06-08 21:30:50 +02:00
.reuse Add reuse.software metadata 2025-03-28 20:29:21 +01:00
LICENSES Add reuse.software metadata 2025-03-28 20:29:21 +01:00
action.yaml Rebrand to Shrimp CI 2025-06-08 21:30:50 +02:00
ci-checkout Turn off git advice using environment variables instead of using the option for better compatibility 2025-05-21 21:16:11 +02:00
README.md Rebrand to Shrimp CI 2025-06-08 21:30:50 +02:00

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:

  • git
  • trurl

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.