Poor Jippo's Community Assistant

There has been some interest on having assistant like execution of Github robots. So here is how I do something like that, with just simple shell script. This works with linux, and could be adapted to other operating systems.

Happy hacking.

#!/bin/sh -ex

AUTHOR=robocorp
ASSISTANT=example-assistant-tutorial
BRANCH=master
TARGET=${ASSISTANT}-${BRANCH}

OS=linux64
RCCVERSION=v10.9.3

if [ ! -x ./rcc ]; then
    echo Downloading rcc tooling.
    curl -o rcc https://downloads.robocorp.com/rcc/releases/$RCCVERSION/$OS/rcc
    chmod 755 rcc
fi

if [ -d "$TARGET" ]; then
    echo Cleaning up old robot workspace.
    rm -rf $TARGET
fi

./rcc community pull --branch $BRANCH --directory . $AUTHOR/$ASSISTANT
./rcc run --space assist --robot ${TARGET}/robot.yaml
1 Like