diff --git a/action.yml b/action.yml index 6a442e5..4d7549b 100644 --- a/action.yml +++ b/action.yml @@ -61,13 +61,13 @@ runs: # If site is not there yet, clone it [ -d "${SOURCE_DIR}/${SITE_DIRNAME}" ] || - git clone https://git.alice.ufsj.edu.br/$REPO_NAME + sudo -u www-data git clone https://git.alice.ufsj.edu.br/$REPO_NAME # Update cd "${SOURCE_DIR}/${SITE_DIRNAME}" - git pull + sudo -u www-data git pull # Build [ $SKIP_BUILD != false ] && exit 0 - bundle install - bundle exec jekyll build $JEKYLL_ARGS --destination=$DEST_DIR/$OUTPUT_DIRNAME + sudo -u www-data bundle install + sudo -u www-data bundle exec jekyll build $JEKYLL_ARGS --destination=$DEST_DIR/$OUTPUT_DIRNAME