19 lines
445 B
YAML
19 lines
445 B
YAML
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"
|