Skip to content

Commit

Permalink
Set default value
Browse files Browse the repository at this point in the history
  • Loading branch information
web-flow committed Nov 9, 2020
1 parent 85414ee commit add8f40
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,12 @@ if [ -z "$DISTRIBUTE_REPO" ]; then
DISTRIBUTE_REPO="${GITHUB_REPOSITORY#*/}"
fi

if [ -z "$DISTRIBUTE_CMD" ]; then
DISTRIBUTE_CMD="github"
fi

if [ -z "$DISTRIBUTE_LIMIT" ]; then
DISTRIBUTE_LIMIT=20
fi

broker "$DISTRIBUTE_CMD" -t "$DISTRIBUTE_TOKEN" -o "$DISTRIBUTE_OWNER" -r "$DISTRIBUTE_REPO" -c "$DISTRIBUTE_CHANNEL" -l "$DISTRIBUTE_LIMIT"

0 comments on commit add8f40

Please sign in to comment.