Skip to content

Commit

Permalink
ci: only launch plugins if outdated
Browse files Browse the repository at this point in the history
  • Loading branch information
davidgomesdev committed Jan 3, 2024
1 parent 1a77bbe commit f8c0af4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion server/scripts/launch-all.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@ printf "\n${SECTION}* Updating and launching plugins...$RESET\n\n"

PLUGINS_PATH=${PLUGINS_PATH:-../RustyController-plugins}

mkdir -p /var/log/rusty-controller/plugins/ && cd "$PLUGINS_PATH" && git pull && bash run-all.sh
# Run plugins only if outdated
mkdir -p /var/log/rusty-controller/plugins/ && cd "$PLUGINS_PATH" && git remote update && git status -uno | grep -q 'Your branch is behind' && git pull && bash run-all.sh

echo -e "\n${SUCCESS}* Finished! (at $(date))$RESET"
echo

0 comments on commit f8c0af4

Please sign in to comment.