Skip to content

Commit eb0dab9

Browse files
committed
remove entrypoint if else never used
1 parent f736958 commit eb0dab9

1 file changed

Lines changed: 2 additions & 7 deletions

File tree

entrypoint.sh

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,8 @@ if [ -n "$INPUT_INPUT" ]; then
99
# Note: Do not quote $INPUT_INPUT here in case multiple URLs are passed as spaces
1010
CMD="$CMD --input $INPUT_INPUT"
1111
else
12-
# use the repository URL as the default input if not provided
13-
if [ -n "$GITHUB_REPOSITORY" ]; then
14-
CMD="$CMD --input https://github.com/$GITHUB_REPOSITORY"
15-
else # if github repository url is not existing then return error
16-
echo "Error: The 'input' argument is required and $GITHUB_REPOSITORY environment variable is not set. Please provide an input or run this action within a GitHub repository context."
17-
exit 1
18-
fi
12+
echo "Error: The 'input' argument is required and $GITHUB_REPOSITORY environment variable is not set. Please provide an input or run this action within a GitHub repository context."
13+
exit 1
1914
fi
2015

2116
# Handle boolean flags

0 commit comments

Comments
 (0)