forked from cisco/lal-build-manager
-
Notifications
You must be signed in to change notification settings - Fork 2
33 lines (30 loc) · 902 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
32
33
# When pushed to master, run `cargo +nightly fmt --all` and open a PR.
name: rustfmt
on:
push:
# Limit to `master` because this action creates a PR
branches:
- master
jobs:
rustfmt_nightly:
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v2
- name: Install nightly toolchain with rustfmt available
uses: actions-rs/toolchain@v1
with:
toolchain: nightly
override: true
components: rustfmt
- run: rustfmt +nightly --edition 2018 **/*.rs
- name: Create Pull Request
uses: peter-evans/create-pull-request@v3
with:
commit-message: rustfmt
title: rustfmt
body: |
Changes from `rustfmt +nightly --edition 2018 **/*.rs`.
branch: rustfmt
# Delete branch when merged
delete-branch: true