when: - event: push branch: ${CI_REPO_DEFAULT_BRANCH} steps: - name: 'Format w/ Cargo' image: rust:1.88 commands: - rustup component add rustfmt - cargo fmt - name: 'Push formatted' image: appleboy/drone-git-push settings: remote_name: origin branch: ${CI_COMMIT_BRANCH} commit: true commit_message: "[skip ci] chore: automated code formatting" author_name: "Woodpecker CI"