Template
mirror of
https://github.com/MorpheApp/morphe-patches-template.git
synced 2026-12-01 00:19:34 +00:00
chore: Add a hint to not modify patches-list.json by hand. Remove 'v' from version tag that not used during release
This commit is contained in:
1 parent
5fee07592e
commit
031b1eb376
2 files changed
+10
-3
No files matched your search
@@ -88,7 +88,13 @@ private fun generatePatchList(version: String, patches: Set<Patch<*>>) {
|
||||
.create()
|
||||
|
||||
val jsonObject = JsonObject()
|
||||
jsonObject.addProperty("version", "v$version")
|
||||
jsonObject.addProperty(
|
||||
"NOTE",
|
||||
"Do NOT manually edit this file. This file is automatically updated when " +
|
||||
"semantic release (release.yml) runs. Manually editing this file can break " +
|
||||
"your releases and break third party tools that use this file."
|
||||
)
|
||||
jsonObject.addProperty("version", version)
|
||||
jsonObject.add("patches", gson.toJsonTree(patchesMap))
|
||||
|
||||
listJson.writeText(gson.toJson(jsonObject))
|
||||
|
||||
Reference in new issue
Block a user