From 998f0d1dbd2c634e0509232d49aacf7791744362 Mon Sep 17 00:00:00 2001 From: Daniel Rudolf Date: Mon, 7 Mar 2022 21:24:20 +0100 Subject: [PATCH] CI: Fix Composer root version guessing (again) --- .github/actions/install/action.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/actions/install/action.yml b/.github/actions/install/action.yml index c4a7e11..c482954 100644 --- a/.github/actions/install/action.yml +++ b/.github/actions/install/action.yml @@ -51,8 +51,8 @@ runs: COMPOSER_ROOT_VERSION= COMPOSER_ROOT_VERSION="$(composer config \ - extra.branch-alias."dev-${GITHUB_HEAD_REF:-GITHUB_REF_NAME}" \ - 2> /dev/null)" + extra.branch-alias."dev-${GITHUB_HEAD_REF:-$GITHUB_REF_NAME}" \ + 2> /dev/null || true)" if [ -z "$COMPOSER_ROOT_VERSION" ]; then COMPOSER_ROOT_VERSION="$(php -r "