From ea375caebca3acb29e6b266a5e3f3f3285f900ed Mon Sep 17 00:00:00 2001 From: probonopd Date: Fri, 23 Jul 2021 21:39:52 +0200 Subject: [PATCH] Do not run worker.sh with sudo --- .github/workflows/test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index d83a82e7..6896e775 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -52,7 +52,7 @@ jobs: echo "$FILES" ; if [ -z "$FILES" ] ; then echo "Variable FILES is empty." && exit 1 ; fi # Work on these files that have been changed in the last commit # Check if $FILES is not empty - if [ -n "$FILES" ] ; then for FILE in $FILES ; do echo "$FILE" ; sudo -E bash -e code/worker.sh $(readlink -f "$FILE") 2>&1 | tee log.txt ; done ; fi + if [ -n "$FILES" ] ; then for FILE in $FILES ; do echo "$FILE" ; bash -e code/worker.sh $(readlink -f "$FILE") 2>&1 | tee log.txt ; done ; fi # xpra stop :99 killall Xvfb # bundle exec jekyll build # https://help.github.com/en/articles/viewing-jekyll-build-error-messages#configuring-a-third-party-service-to-display-jekyll-build-error-messages