Merge pull request 'filter enviornment variables when launching the runner' (#16) from earl-warren/setup-forgejo:wip-environ into main

Reviewed-on: https://code.forgejo.org/actions/setup-forgejo/pulls/16
Reviewed-by: dachary <dachary@noreply.code.forgejo.org>
This commit is contained in:
earl-warren 2023-04-30 21:08:12 +00:00
commit ee99134ef9

View file

@ -27,7 +27,7 @@ function register() {
function run() { function run() {
rm -f forgejo-runner.log rm -f forgejo-runner.log
daemon --chdir=$(pwd) --unsafe --pidfile=$(pwd)/forgejo-runner-pid --errlog=$(pwd)/forgejo-runner.log --output=$(pwd)/forgejo-runner.log forgejo-runner daemon daemon --chdir=$(pwd) --unsafe --env="TERM=$TERM" --env="HOME=$HOME" --env="PATH=$PATH" --env="USER=$USER" --env="TERM=dumb" --env="USERNAME=$USERNAME" --env="LANG=$LANG" --pidfile=$(pwd)/forgejo-runner-pid --errlog=$(pwd)/forgejo-runner.log --output=$(pwd)/forgejo-runner.log forgejo-runner daemon
sleep 1 sleep 1
cat forgejo-runner.log cat forgejo-runner.log
} }