-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathentrypoint.sh
More file actions
50 lines (37 loc) · 1.01 KB
/
entrypoint.sh
File metadata and controls
50 lines (37 loc) · 1.01 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
#!/bin/sh -l
set -e
# Construct arguments array
ARGS=""
if [ -n "$INPUT_PATH" ]; then
ARGS="$ARGS --path $INPUT_PATH"
fi
if [ -n "$INPUT_MAIN_BRANCH" ]; then
ARGS="$ARGS --main-branch $INPUT_MAIN_BRANCH"
fi
if [ -n "$INPUT_RELEASE_BRANCH" ]; then
ARGS="$ARGS --release-branch $INPUT_RELEASE_BRANCH"
fi
if [ -n "$INPUT_FEATURE_BRANCH" ]; then
ARGS="$ARGS --feature-branch $INPUT_FEATURE_BRANCH"
fi
if [ -n "$INPUT_TAG_PREFIX" ]; then
ARGS="$ARGS --tag-prefix $INPUT_TAG_PREFIX"
fi
if [ -n "$INPUT_PRE_RELEASE_TAG" ]; then
ARGS="$ARGS --pre-release-tag $INPUT_PRE_RELEASE_TAG"
fi
if [ "$INPUT_CONTINUOUS_DELIVERY" = "true" ]; then
ARGS="$ARGS --continuous-delivery"
fi
if [ -n "$INPUT_COMMIT_MESSAGE_INCREMENTING" ]; then
ARGS="$ARGS --commit-message-incrementing $INPUT_COMMIT_MESSAGE_INCREMENTING"
fi
if [ "$INPUT_AS_RELEASE" = "true" ]; then
ARGS="$ARGS --as-release"
fi
if [ -n "$INPUT_CONFIG" ]; then
ARGS="$ARGS --config $INPUT_CONFIG"
fi
# Run the tool
# shellcheck disable=SC2086
git-versioner $ARGS