diff --git a/src/entrypoint.sh b/src/entrypoint.sh index 8c6b78da..63bdae6c 100755 --- a/src/entrypoint.sh +++ b/src/entrypoint.sh @@ -2,10 +2,8 @@ # # Entrypoint for Docker. -readonly CONFIGURATION_FILE="${1}" -readonly TOKEN="${2}" - -export RENOVATE_CONFIG_FILE="${GITHUB_WORKSPACE}/${CONFIGURATION_FILE}" +export RENOVATE_TOKEN="${2}" +export RENOVATE_CONFIG_FILE="${GITHUB_WORKSPACE}/${1}" if [[ ! -f "${RENOVATE_CONFIG_FILE}" ]]; then echo "ERROR: Couldn't find file ${RENOVATE_CONFIG_FILE}" 1>&2 @@ -17,4 +15,5 @@ fi # Mimic the original ENTRYPOINT of the renovate/renovate Docker container. See # the following link for this entry. # https://github.com/renovatebot/docker-renovate/blob/d3aa0d99931ea7ad7e901a1e538eba0d61268229/Dockerfile#L63 -RENOVATE_TOKEN="${TOKEN}" renovate + +/usr/local/bin/docker-entrypoint.sh