diff --git a/tasks/stages/update-demo b/tasks/stages/update-demo index 3d9eb6ff..d77d4f50 100755 --- a/tasks/stages/update-demo +++ b/tasks/stages/update-demo @@ -6,10 +6,12 @@ PWD="$(pwd)" WORKDIR="$(pwd)/tmp" CLONE_DIR="$WORKDIR/bpmn-io-demo" +GIT_ENDPOINT=https://$GITHUB_AUTH@github.com/$BPMN_IO_DEMO_ENDPOINT.git + # create work dir 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" @@ -22,7 +24,7 @@ git config push.default simple git add -A git commit -m "chore(project): bump bpmn-js to $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 --tags -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 "$GIT_ENDPOINT" &2>/dev/null cd "$PWD" \ No newline at end of file