Skip to content

πŸ™Œ OpenHands: AI-Driven Development

ci: add release ready gate (#14987)

Engel Nystae5b8a995deb
diff --git a/.github/workflows/release-ready.yml b/.github/workflows/release-ready.yml
new file mode 100644
index 0000000000..2515e24f3f
--- /dev/null
+++ b/.github/workflows/release-ready.yml
@@ -0,0 +1,32 @@
+name: release ready
+
+on:
+ pull_request_target:
+ types: [ready_for_review]
+
+jobs:
+ local-gui-release-ready:
+ if: "${{ contains(github.event.pull_request.labels.*.name, 'release-line: gui') }}"
+ permissions:
+ actions: write
+ contents: read
+ issues: write
+ pull-requests: write
+ secrets: inherit
+ uses: OpenHands/release-actions/.github/workflows/release-ready.yml@main
+ with:
+ product-name: Local GUI
+ slack-channel: "#proj-agent-canvas"
+
+ cloud-release-ready:
+ if: "${{ contains(github.event.pull_request.labels.*.name, 'release-line: cloud') }}"
+ permissions:
+ actions: write
+ contents: read
+ issues: write
+ pull-requests: write
+ secrets: inherit
+ uses: OpenHands/release-actions/.github/workflows/release-ready.yml@main
+ with:
+ product-name: OpenHands Cloud
+ slack-channel: "#openhands-cloud"
diff --git a/release-please-config.cloud.json b/release-please-config.cloud.json
index 8a30afde07..87c6333772 100644
--- a/release-please-config.cloud.json
+++ b/release-please-config.cloud.json
@@ -1,6 +1,8 @@
{
"$schema": "https://raw.githubusercontent.com/googleapis/release-please/main/schemas/config.json",
"last-release-sha": "2a3f06a75d4b166bef77a0240143efdcc092cfc2",
+ "draft-pull-request": true,
+ "extra-label": "release-line: cloud",
"packages": {
".": {
"release-type": "simple",
diff --git a/release-please-config.json b/release-please-config.json
index a7ff2eeb8b..54b2eaa524 100644
--- a/release-please-config.json
+++ b/release-please-config.json
@@ -1,6 +1,8 @@
{
"$schema": "https://raw.githubusercontent.com/googleapis/release-please/main/schemas/config.json",
"last-release-sha": "94c60d78545895e198bb1df9d9463c96e2e2b7b2",
+ "draft-pull-request": true,
+ "extra-label": "release-line: gui",
"packages": {
".": {
"release-type": "simple",
@@ -11,10 +13,26 @@
"include-v-in-release-name": false,
"exclude-paths": ["enterprise"],
"extra-files": [
- { "type": "toml", "path": "pyproject.toml", "jsonpath": "$.tool.poetry.version" },
- { "type": "json", "path": "frontend/package.json", "jsonpath": "$.version" },
- { "type": "json", "path": "frontend/package-lock.json", "jsonpath": "$.version" },
- { "type": "json", "path": "frontend/package-lock.json", "jsonpath": "$.packages[''].version" }
+ {
+ "type": "toml",
+ "path": "pyproject.toml",
+ "jsonpath": "$.tool.poetry.version"
+ },
+ {
+ "type": "json",
+ "path": "frontend/package.json",
+ "jsonpath": "$.version"
+ },
+ {
+ "type": "json",
+ "path": "frontend/package-lock.json",
+ "jsonpath": "$.version"
+ },
+ {
+ "type": "json",
+ "path": "frontend/package-lock.json",
+ "jsonpath": "$.packages[''].version"
+ }
]
}
}