clan-infra/pkgs/action-checkout/script.sh
Jörg Thalheim 15b20d2e9e
All checks were successful
build / test (push) Successful in 7s
move devShells out of flake-parts
2023-08-03 16:18:29 +02:00

11 lines
222 B
Bash

#!/usr/bin/env bash
set -euo pipefail
# load BRANCH variable with default
BRANCH=${BRANCH:-main}
# load REPO_DIR variable with default
export REPO_DIR=${REPO_DIR:-.}
git clone --depth 1 --branch $BRANCH $REPO $REPO_DIR