Skip to content

Commit

Permalink
Update entrypoint.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
pzurek authored Feb 27, 2019
1 parent aefa286 commit 620c7f3
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,19 @@ cd ..
git config --global user.email $GIT_USER_EMAIL
git config --global user.name $GIT_USER_NAME

# clone the stoplight repository
# clone the Stoplight repository
git clone https://$STOPLIGHT_USERNAME:$STOPLIGHT_GIT_TOKEN@git.stoplight.io/$STOPLIGHT_ORG/$STOPLIGHT_PROJECT.git

# go into the stoplight repo and checkout the "version" branch
# go into the Stoplight repo and checkout the "version" branch
cd $STOPLIGHT_PROJECT
git checkout version/1.0

# copy the hub file from workspace to stoplight repo
# copy the hub file from workspace to the Stoplight repo
cp ../workspace/$HUB_FILEPATH $HUB_FILEPATH

# add, commit and push the stoplight repo
# add, commit and push the Stoplight repo
git add -A


git commit -m "hub file update from GitHub"
git push

0 comments on commit 620c7f3

Please sign in to comment.