Skip to content

Commit

Permalink
do not fail when .final_builds is missing
Browse files Browse the repository at this point in the history
  • Loading branch information
o-orand committed Jan 16, 2024
1 parent 482239b commit fce0b1a
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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}"
Expand All @@ -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
Expand Down

0 comments on commit fce0b1a

Please sign in to comment.