fix: add branch name to checkout #2

Merged
appel_c merged 1 commits from feat/add_branch_information_to_checkout_repository_action into main 2025-12-05 14:38:14 +01:00

View File

@@ -16,7 +16,7 @@ echo "=== Checkout BEC Plugin ==="
mkdir -p ./_plugin_checkout_/
cd ./_plugin_checkout_/
if git clone --depth 1 --branch "$PLUGIN_BRANCH" "$PLUGIN_URL"; then
echo "Plugin checkout successful"
echo "Plugin installed for repository $PLUGIN_REPO_NAME and branch $PLUGIN_BRANCH"
else
echo "Plugin checkout failed, trying default branch"
git clone --depth 1 "$PLUGIN_URL"
@@ -31,7 +31,7 @@ echo "=== Checkout BEC Core ==="
mkdir -p ./_bec_checkout_/
cd ./_bec_checkout_/
if git clone --depth 1 --branch "$CORE_BRANCH" https://github.com/bec-project/bec.git; then
echo "Core checkout successful"
echo "BEC Core installed for branch $CORE_BRANCH"
else
echo "Core checkout failed, trying default branch"
git clone --depth 1 https://github.com/bec-project/bec.git
@@ -45,7 +45,7 @@ echo "=== Checkout BEC Widgets ==="
mkdir -p ./_bec_widgets_checkout_/
cd ./_bec_widgets_checkout_/
if git clone --depth 1 --branch "$WIDGETS_BRANCH" https://github.com/bec-project/bec_widgets.git; then
echo "Widgets checkout successful"
echo "BEC Widgets installed for branch $WIDGETS_BRANCH"
else
echo "Widgets checkout failed, trying default branch"
git clone --depth 1 https://github.com/bec-project/bec_widgets.git
@@ -59,7 +59,7 @@ echo "=== Checkout Ophyd Devices ==="
mkdir -p ./_ophyd_devices_checkout_/
cd ./_ophyd_devices_checkout_/
if git clone --depth 1 --branch "$OPHYD_DEVICES_BRANCH" https://github.com/bec-project/ophyd_devices.git; then
echo "Ophyd Devices checkout successful"
echo "Ophyd Devices installed for branch $OPHYD_DEVICES_BRANCH"
else
echo "Ophyd Devices checkout failed, trying default branch"
git clone --depth 1 https://github.com/bec-project/ophyd_devices.git