Files
OpenMMO/.woodpecker/spotless.yml
T
2026-01-05 01:08:41 +01:00

27 lines
674 B
YAML

when:
branch: main
event: push
steps:
- name: spotless-apply
image: gradle:8-jdk24
commands:
- chmod +x ./gradlew
- ./gradlew spotlessApply
- name: commit-changes
image: alpine/git:latest
commands:
- git config --local user.email "openmmo-bot@forge.fiereu.de"
- git config --local user.name "openmmo-bot"
- git add -A
- |
if ! git diff --staged --quiet; then
git commit -m "Apply spotless formatting [skip ci]"
git push origin ${CI_COMMIT_BRANCH}
else
echo "No formatting changes needed"
fi
environment:
GIT_PASSWORD:
from_secret: git_token