File size: 509 Bytes
54c1e09
 
 
 
 
 
fb44cba
 
54c1e09
 
 
 
 
 
 
 
9b4b2ba
 
6150808
9b4b2ba
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/bash

if [ -n "$GIT_CLONE_REPOS" ]; then
  echo "$GIT_CLONE_REPOS"
  git config --global user.email "$GIT_USER"
  git config --global user.name "$GIT_NAME"

  for i in `echo $GIT_CLONE_REPOS`; do git clone $i; done

# GIT_CLONE_REPOS secreat should be like https://github.com/user1/repo1.git \
#   https://github.com/user2/repo2.git \
#   https://github.com/user3/repo3.git

else
  echo "No git repos requests detected."
fi

if [ -n "$ADDITIONAL_RUN" ]; then
  "$ADDITIONAL_RUN"
else
  echo "Ready!"
fi