Skip to content

Commit 5809a5b

Browse files
committed
ci(release-please): bump example config version on release
Add `extra-files` to release-please config so it rewrites the version in `internal/buildinfo/version.go` and `contrib/dutagent-cfg-example.yaml` on every release. The example config now carries the current release version with an inline `x-release-please-version` annotation, keeping the documented schema version in lockstep with the binary.
1 parent 21b2132 commit 5809a5b

2 files changed

Lines changed: 7 additions & 2 deletions

File tree

contrib/dutagent-cfg-example.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
version: 0
2+
version: 1.0.0-alpha.1 # x-release-please-version
33
devices:
44
device1:
55
desc: "Device 1"

release-please-config.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,11 @@
4646
}
4747
],
4848
"packages": {
49-
".": {}
49+
".": {
50+
"extra-files": [
51+
"internal/buildinfo/version.go",
52+
"contrib/dutagent-cfg-example.yaml"
53+
]
54+
}
5055
}
5156
}

0 commit comments

Comments
 (0)