forked from kube-rs/kube
-
Notifications
You must be signed in to change notification settings - Fork 0
31 lines (30 loc) · 877 Bytes
/
rustfmt.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# When pushed to main, run `cargo +nightly fmt` against all files and open a PR.
name: rustfmt
on:
push:
# Limit to `main` because this action creates a PR
branches:
- main
paths:
- '**.rs'
- '**.yml'
jobs:
rustfmt_nightly:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@nightly
with:
components: rustfmt
- run: rustfmt +nightly --edition 2021 $(find . -type f -iname *.rs)
- name: Create Pull Request
uses: peter-evans/create-pull-request@v7
with:
commit-message: rustfmt
signoff: true
title: rustfmt
body: |
Changes from `rustfmt +nightly --edition 2021 $(find . -type f -iname *.rs)`.
branch: rustfmt
# Delete branch when merged
delete-branch: true