This repository was archived by the owner on Dec 1, 2022. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 2
43 lines (40 loc) · 1.32 KB
/
code-maid.yml
File metadata and controls
43 lines (40 loc) · 1.32 KB
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
34
35
36
37
38
39
40
41
42
43
name: Daily code format check
on:
schedule:
- cron: 0 2 * * *
jobs:
dotnet-format:
runs-on: windows-latest
steps:
- name: Install dotnet-format
run: dotnet tool install -g dotnet-format
- name: Checkout repo
uses: actions/checkout@v2
with:
ref: ${{ github.head_ref }}
- name: Run dotnet format
id: format
uses: jfversluis/dotnet-format@v1.0.5
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
action: "fix"
workspace: "QuarkParser.sln"
- name: Commit files
if: steps.format.outputs.has-changes == 'true'
run: |
git config --local user.name "Code Maid"
git config --local user.email "code.maid@0xf6.moe"
git commit -a -m 'Automated dotnet-format update'
- name: Create Pull Request
uses: peter-evans/create-pull-request@v3
with:
title: '[housekeeping] Automated PR to fix formatting errors'
body: |
Automated PR to fix formatting errors
token: ${{ secrets.CODE_MAID_PAT }}
committer: Code Maid <code.maid@0xf6.moe>
author: Code Maid <code.maid@0xf6.moe>
labels: code-quality ♻︎
assignees: 0xF6
reviewers: 0xF6
branch: code-quality/codeformatting