-
Notifications
You must be signed in to change notification settings - Fork 44
37 lines (36 loc) · 1.14 KB
/
check-license.yaml
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
# Copyright 2023-2025, shadow3 (@shadow3aaa)
#
# This file is part of fas-rs.
#
# fas-rs is free software: you can redistribute it and/or modify it under
# the terms of the GNU General Public License as published by the Free
# Software Foundation, either version 3 of the License, or (at your option)
# any later version.
#
# fas-rs is distributed in the hope that it will be useful, but WITHOUT ANY
# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
# FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
# details.
#
# You should have received a copy of the GNU General Public License along
# with fas-rs. If not, see <https://www.gnu.org/licenses/>.
name: check-license
on:
push:
branches: ["master"]
env:
CARGO_TERM_COLOR: always
jobs:
build:
if: github.actor == 'shadow3aaa'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Run checks
run: |
cargo install hawkeye
hawkeye format || true
- uses: peter-evans/create-pull-request@v6
with:
token: ${{ secrets.PAT }}
commit-message: Add missing license header