From fce0b1a397d2f93710e3e51f655730971222a737 Mon Sep 17 00:00:00 2001 From: Olivier ORAND Date: Tue, 16 Jan 2024 10:55:13 +0000 Subject: [PATCH] do not fail when .final_builds is missing --- entrypoint.sh | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/entrypoint.sh b/entrypoint.sh index 6cfcfa3..75d5427 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -35,7 +35,7 @@ if [ -n "$INPUT_TAG_NAME" ];then fi -if [ $INPUT_DEBUG -ne 0 ];then +if [ "$INPUT_DEBUG" -ne 0 ];then echo "Current files before release creation:" echo "Current files:" ls -l @@ -92,7 +92,9 @@ fi if [ "${release}" == "true" ]; then echo "pushing changes to git repository" - git add .final_builds + if [ -d .final_builds ];then + git add .final_builds + fi git add releases/${name}/index.yml git add releases/${name}/${name}-${version}.yml git commit -a -m "cutting release ${version}" @@ -109,8 +111,7 @@ if [ "${release}" == "true" ]; then git push ${remote_repo} HEAD:${INPUT_TARGET_BRANCH} --follow-tags # Push branch and tag fi - -if [ $INPUT_DEBUG -ne 0 ];then +if [ "$INPUT_DEBUG" -ne 0 ];then echo "Current files after release creation:" ls -l fi