Skip to content

Commit c2e138d

Browse files
committed
ci: Added update-license pipeline
1 parent 922445e commit c2e138d

File tree

2 files changed

+96
-1
lines changed

2 files changed

+96
-1
lines changed
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Update copyright year in license file
2+
3+
on:
4+
schedule:
5+
- cron: '0 6 1 1 *'
6+
workflow_dispatch:
7+
8+
permissions:
9+
contents: read
10+
pull-requests: write
11+
12+
jobs:
13+
run:
14+
runs-on: ubuntu-latest
15+
steps:
16+
17+
- name: Checkout repository
18+
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6
19+
with:
20+
fetch-depth: 0
21+
22+
- uses: FantasticFiasco/action-update-license-year@d837fc83ecb71196807bdf3854208f556e66f6ed # v3
23+
with:
24+
token: ${{ secrets.GITHUB_TOKEN }}
25+
prTitle: 'chore: Updated LICENSE'
26+
commitTitle: 'chore: Updated LICENSE [skip ci]'
27+
id: license
28+
29+
- name: Merge PR
30+
if: steps.license.outputs.pullRequestNumber != ''
31+
env:
32+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
33+
run: gh pr merge --squash --admin --delete-branch ${{ steps.license.outputs.pullRequestNumber }}

renovate.json

Lines changed: 63 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,68 @@
11
{
22
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
33
"extends": [
4-
"config:recommended"
4+
"config:best-practices",
5+
":disableDependencyDashboard",
6+
":automergeMinor",
7+
":automergePatch",
8+
":rebaseStalePrs"
9+
],
10+
"ignorePresets": [
11+
"group:monorepos"
12+
],
13+
"automergeType": "pr",
14+
"automergeStrategy": "squash",
15+
"enabledManagers": [
16+
"github-actions",
17+
"nuget",
18+
"custom.regex"
19+
],
20+
"customManagers": [
21+
{
22+
"customType": "regex",
23+
"managerFilePatterns": [
24+
"/\\.(?:cs|fs|vb)proj$/",
25+
"/\\.(?:props|targets)$/"
26+
],
27+
"matchStrings": [
28+
"<PackageReference\\s+Include=\"(?<depName>[^\"]+)\"\\s+Version=\"\\[(?<currentValue>[^,]+),.*\"",
29+
"<Sdk\\s+Name=\"(?<depName>[^\"]+)\"\\s+Version=\"(?<currentValue>[^,]+)\"",
30+
"<Project\\s+Sdk=\"(?<depName>[^\"]+)/(?<currentValue>[^,]+)\""
31+
],
32+
"datasourceTemplate": "nuget",
33+
"versioningTemplate": "nuget"
34+
}
35+
],
36+
"packageRules": [
37+
{
38+
"matchManagers": [
39+
"nuget",
40+
"custom.regex"
41+
],
42+
"labels": [
43+
"dependency:nuget"
44+
],
45+
"semanticCommits": "enabled",
46+
"semanticCommitType": "chore",
47+
"semanticCommitScope": "deps",
48+
"assignees": [
49+
"samtrion"
50+
]
51+
},
52+
{
53+
"matchManagers": [
54+
"github-actions"
55+
],
56+
"labels": [
57+
"dependency:actions"
58+
],
59+
"automerge": true,
60+
"semanticCommits": "enabled",
61+
"semanticCommitType": "chore",
62+
"semanticCommitScope": "ci",
63+
"assignees": [
64+
"samtrion"
65+
]
66+
}
567
]
668
}

0 commit comments

Comments
 (0)