actions/example-pull-request: cleanup /srv/example-pull-request

This commit is contained in:
Earl Warren 2023-12-20 22:50:08 +01:00
parent 13283ea0c3
commit 8358ff2372
No known key found for this signature in database
GPG key ID: 0579CB2928A78A00

View file

@ -1,2 +1,8 @@
if test $(id -u) != 0 ; then
SUDO=sudo
fi
$SUDO rm -fr /srv/example-pull-request/{root,fork-org}
rm -fr /srv/example-pull-request
mkdir -p /srv/example-pull-request
FORGEJO_RUNNER_CONFIG=$EXAMPLE_DIR/runner-config.yaml forgejo-runner.sh reload