Skip to content

Commit 08bd17d

Browse files
authored
Allow to update gitsubmodule by renovate (#522)
1 parent cc5acc9 commit 08bd17d

File tree

3 files changed

+37
-2
lines changed

3 files changed

+37
-2
lines changed

.github/release.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# https://docs.github.com/en/repositories/releasing-projects-on-github/automatically-generated-release-notes
2+
changelog:
3+
categories:
4+
- title: Breaking Changes
5+
labels:
6+
- breaking-change
7+
- title: line-openapi updates
8+
labels:
9+
- line-openapi-update
10+
- title: New Features
11+
labels:
12+
- new-features
13+
- title: Bug fix
14+
labels:
15+
- bug-fix
16+
- title: Dependency updates
17+
labels:
18+
- dependency upgrade
19+
exclude:
20+
labels:
21+
- line-openapi-update
22+
- title: Other Changes
23+
labels:
24+
- "*"

.github/workflows/update-code.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,9 @@ jobs:
4747
git config user.email github-actions@github.com
4848
git checkout -b update-diff-${{ env.CURRENT_DATETIME }}
4949
50+
git add line-openapi
5051
git add lib/**
51-
git commit --allow-empty -m "Codes are generated by openapi"
52+
git commit -m "Codes are generated by openapi"
5253
5354
git push origin update-diff-${{ env.CURRENT_DATETIME }}
5455
gh pr create -B ${{ github.ref_name }} -t "Codes are generated by openapi" -b "" --label "line-openapi-update"

renovate.json

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,15 @@
44
"config:base"
55
],
66
"automerge": true,
7-
"platformAutomerge": true
7+
"platformAutomerge": true,
8+
"git-submodules": {
9+
"enabled": true
10+
},
11+
"labels": [ "dependency upgrade" ],
12+
"packageRules": [
13+
{
14+
"matchPackagePatterns": ["^line-openapi$"],
15+
"labels": ["dependency upgrade", "line-openapi-update"]
16+
}
17+
]
818
}

0 commit comments

Comments
 (0)