Automate copyright headers addition (#2440)
* Refactor checking headers to automatically add them
This commit is contained in:
1 parent
007f5d8b46
commit
f607e77274
1 file changed
+8
-3
@@ -1,10 +1,15 @@
|
||||
name: Check Copyright Headers
|
||||
name: Add Copyright Headers
|
||||
on: pull_request
|
||||
jobs:
|
||||
copywrite:
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
contents: write
|
||||
steps:
|
||||
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
|
||||
- uses: hashicorp/setup-copywrite@32638da2d4e81d56a0764aa1547882fc4d209636 # v1.1.3
|
||||
- name: Check Header Compliance
|
||||
run: copywrite headers --plan
|
||||
- name: Add missing Copyright Headers
|
||||
run: copywrite headers
|
||||
- uses: stefanzweifel/git-auto-commit-action@8621497c8c39c72f3e2a999a26b4ca1b5058a842 # v5.0.1
|
||||
with:
|
||||
commit_message: Add missing copyright headers
|
||||
Reference in new issue
Block a user