This commit is contained in:
alyssa 2024-09-06 12:53:24 +09:00
parent e424c241e3
commit ac7356ba4a
4 changed files with 110 additions and 4 deletions

26
ci/run.sh Normal file
View file

@ -0,0 +1,26 @@
#!/bin/sh
set -euo pipefail
notify_discord() {
todo
}
# CI_PREV_COMMIT
# GH_BRANCH
files_changed=$(git diff --name-only $CI_PREV_COMMIT)
if [ ! -z "$(echo $files_changed | grep -E '.cs$')" ]; then
dotnet_format
fi
if [ ! -z "$(echo $files_changed | grep -E '.rs$')" ]; then
rustfmt
fi
###
if PluralKit.Bot changed build bot
if PluralKit.Core changed build bot api
idk this should just be python