From e80c7676747b5b3939d434f2690bad34c0d82739 Mon Sep 17 00:00:00 2001 From: Tonye Jack Date: Fri, 31 Mar 2023 00:06:53 -0600 Subject: [PATCH] Update entrypoint.sh --- entrypoint.sh | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/entrypoint.sh b/entrypoint.sh index 769bf84..47151e7 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -4,6 +4,8 @@ set -euo pipefail OUTPUT_PATH="cliff.toml" -sed 's@REPOSITORY_URL@'"$INPUT_REPOSITORY_URL"'@g' cliff-template.toml > "$OUTPUT_PATH" - -echo "output_path=$OUTPUT_PATH" >> "$GITHUB_OUTPUT" +if [[ ! -f "$OUTPUT_PATH" ]]; + sed 's@REPOSITORY_URL@'"$INPUT_REPOSITORY_URL"'@g' cliff-template.toml > "$OUTPUT_PATH" + + echo "output_path=$OUTPUT_PATH" >> "$GITHUB_OUTPUT" +fi