chore(tasks): fetch demo with auth

This commit is contained in:
Nico Rehwaldt 2020-02-04 09:07:35 +01:00
parent dc5a566e10
commit b926d281ef
1 changed files with 5 additions and 3 deletions

View File

@ -6,10 +6,12 @@ PWD="$(pwd)"
WORKDIR="$(pwd)/tmp" WORKDIR="$(pwd)/tmp"
CLONE_DIR="$WORKDIR/bpmn-io-demo" CLONE_DIR="$WORKDIR/bpmn-io-demo"
GIT_ENDPOINT=https://$GITHUB_AUTH@github.com/$BPMN_IO_DEMO_ENDPOINT.git
# create work dir # create work dir
mkdir -p "$WORKDIR" mkdir -p "$WORKDIR"
git clone --depth=1 https://github.com/$BPMN_IO_DEMO_ENDPOINT.git "$CLONE_DIR" git clone --depth=1 "$GIT_ENDPOINT" "$CLONE_DIR"
cd "$CLONE_DIR" cd "$CLONE_DIR"
@ -22,7 +24,7 @@ git config push.default simple
git add -A git add -A
git commit -m "chore(project): bump bpmn-js to $TRAVIS_TAG" git commit -m "chore(project): bump bpmn-js to $TRAVIS_TAG"
git tag "bpmn-js-$TRAVIS_TAG" git tag "bpmn-js-$TRAVIS_TAG"
git push -q "https://$GITHUB_AUTH@github.com/$BPMN_IO_DEMO_ENDPOINT.git" &2>/dev/null git push -q "$GIT_ENDPOINT" &2>/dev/null
git push --tags -q "https://$GITHUB_AUTH@github.com/$BPMN_IO_DEMO_ENDPOINT.git" &2>/dev/null git push --tags -q "$GIT_ENDPOINT" &2>/dev/null
cd "$PWD" cd "$PWD"