File tree Expand file tree Collapse file tree 1 file changed +38
-0
lines changed
Expand file tree Collapse file tree 1 file changed +38
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Weekly License Header Check
2+
3+ on :
4+ schedule :
5+ - cron : ' 0 0 * * 1' # Runs every Monday at 00:00 UTC
6+ workflow_dispatch :
7+
8+ jobs :
9+ license-check :
10+ runs-on : ubuntu-latest
11+ steps :
12+ - name : Checkout code
13+ uses : actions/checkout@v4
14+
15+ - name : Import GPG key
16+ uses : crazy-max/ghaction-import-gpg@v6
17+ with :
18+ gpg_private_key : ${{ secrets.CSM_GPG_PRIVATE_KEY }}
19+ git_user_signingkey : true
20+ git_commit_gpgsign : true
21+ git_tag_gpgsign : true
22+ git_config_global : true
23+
24+ - name : Run License Header Checker
25+ uses : dell/common-github-actions/license-checker@main
26+ with :
27+ autofix : true
28+
29+ - name : Create Pull Request
30+ uses : peter-evans/create-pull-request@v7
31+ with :
32+ token : ${{ secrets.GITHUB_TOKEN }}
33+ branch : autofix/license-header
34+ commit-message : " License header autofix"
35+ title : " Automated PR for file changes"
36+ body : " This PR was created automatically by a GitHub Action."
37+ sign-commits : true
38+ delete-branch : false
You can’t perform that action at this time.
0 commit comments