diff --git a/action.yml b/action.yml index 7e28fbd..e5eb359 100644 --- a/action.yml +++ b/action.yml @@ -41,10 +41,10 @@ runs: # if site is not there yet, clone it [ -d "${SITES_DIR}/${SITE_DIRNAME}" ] || - sg www-data -c "git clone https://git.alice.ufsj.edu.br/$REPO_NAME" + sudo -u www-data "git clone https://git.alice.ufsj.edu.br/$REPO_NAME" cd "${SITES_DIR}/${SITE_DIRNAME}" - git pull + sudo -u www-data git pull [ $SKIP_BUILD != false ] && exit 0 - bundle install - make deploy + sudo -u www-data bundle install + sudo -u www-data make deploy