We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1d08364 commit 1b02700Copy full SHA for 1b02700
entrypoint.sh
@@ -3,8 +3,8 @@
3
set -e
4
5
if [[ -z "$GITHUB_TOKEN" ]]; then
6
- echo "Set the GITHUB_TOKEN environment variable."
7
- exit 1
+ echo "Set the GITHUB_TOKEN environment variable."
+ exit 1
8
fi
9
10
if [[ -z "$SSH_PRIVATE_KEY" ]]; then
github-sync.sh
@@ -5,6 +5,16 @@ set -e
UPSTREAM_REPO=$1
BRANCH_MAPPING=$2
+if [[ -z "$UPSTREAM_REPO" ]]; then
+ echo "Missing \$UPSTREAM_REPO"
11
+fi
12
+
13
+if [[ -z "$BRANCH_MAPPING" ]]; then
14
+ echo "Missing \$SOURCE_BRANCH:\$DESTINATION_BRANCH"
15
16
17
18
if ! echo $UPSTREAM_REPO | grep '\.git'
19
then
20
UPSTREAM_REPO="https://github.com/${UPSTREAM_REPO}.git"
0 commit comments