diff --git a/entrypoint.sh b/entrypoint.sh index 7b2ef70..56670ae 100644 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -53,25 +53,25 @@ fi # Set start and stop date if empty printf "\n>\n> Check if start and end date is set\n" -if [ "${INPUT_START_DATE}" = "" ]; then +if [ "${INPUT_GOURCE_START_DATE}" = "" ]; then printf "\n> \tStart date is empty\n" local first_commit=git rev-list --max-parents=0 HEAD echo "First commit: $first_commit" echo $(git show -s --format=%cd --date=short $first_commit) - export INPUT_START_DATE=$(git show -s --format=%cd --date=short $first_commit) - printf "\n> \tSet start date to: $INPUT_START_DATE\n" + export INPUT_GOURCE_START_DATE=$(git show -s --format=%cd --date=short $first_commit) + printf "\n> \tSet start date to: $INPUT_GOURCE_START_DATE\n" else - printf "\n> \tStart date is set to: $INPUT_START_DATE\n" + printf "\n> \tStart date is set to: $INPUT_GOURCE_START_DATE\n" fi -if [ "${INPUT_END_DATE}" = "" ]; then +if [ "${INPUT_GOURCE_STOP_DATE}" = "" ]; then printf "\n> \tEnd date is empty\n" local last_commit=git rev-parse HEAD echo "last commit: $last_commit" echo $(git show -s --format=%cd --date=short $last_commit) - export INPUT_END_DATE=$(git show -s --format=%cd --date=short $last_commit) - printf "\n> \tSet end date to: $INPUT_END_DATE\n" + export INPUT_GOURCE_STOP_DATE=$(git show -s --format=%cd --date=short $last_commit) + printf "\n> \tSet end date to: $INPUT_GOURCE_STOP_DATE\n" else - printf "\n> \tEnd date is set to: $INPUT_END_DATE\n" + printf "\n> \tEnd date is set to: $INPUT_GOURCE_STOP_DATE\n" fi # Set proper env variables if we have a logo.