mirror of
https://github.com/openclaw/openclaw.git
synced 2026-08-12 21:53:00 -06:00
fix: let clawhub dry runs skip publish approval (#91591)
This commit is contained in:
@@ -430,7 +430,7 @@ jobs:
|
||||
|
||||
approve_plugin_clawhub_release:
|
||||
needs: [preview_plugins_clawhub, pack_plugins_clawhub_artifacts]
|
||||
if: github.event_name == 'workflow_dispatch' && needs.preview_plugins_clawhub.outputs.has_candidates == 'true'
|
||||
if: github.event_name == 'workflow_dispatch' && inputs.dry_run != true && needs.preview_plugins_clawhub.outputs.has_candidates == 'true'
|
||||
runs-on: ubuntu-latest
|
||||
environment: clawhub-plugin-release
|
||||
permissions: {}
|
||||
@@ -440,7 +440,7 @@ jobs:
|
||||
|
||||
publish_plugins_clawhub:
|
||||
needs: [preview_plugins_clawhub, pack_plugins_clawhub_artifacts, approve_plugin_clawhub_release]
|
||||
if: github.event_name == 'workflow_dispatch' && needs.preview_plugins_clawhub.outputs.has_candidates == 'true'
|
||||
if: always() && github.event_name == 'workflow_dispatch' && needs.preview_plugins_clawhub.outputs.has_candidates == 'true' && needs.pack_plugins_clawhub_artifacts.result == 'success' && (inputs.dry_run == true || needs.approve_plugin_clawhub_release.result == 'success')
|
||||
permissions:
|
||||
actions: read
|
||||
contents: read
|
||||
|
||||
@@ -1571,7 +1571,11 @@ describe("package artifact reuse", () => {
|
||||
expect(clawHubWorkflow).toContain("dry_run:");
|
||||
expect(clawHubWorkflow).toContain("default: false");
|
||||
expect(clawHubWorkflow).toContain("approve_plugin_clawhub_release:");
|
||||
expect(clawHubWorkflow).toContain("inputs.dry_run != true");
|
||||
expect(clawHubWorkflow).toContain("Approve ClawHub package publish");
|
||||
expect(clawHubWorkflow).toContain(
|
||||
"always() && github.event_name == 'workflow_dispatch' && needs.preview_plugins_clawhub.outputs.has_candidates == 'true' && needs.pack_plugins_clawhub_artifacts.result == 'success' && (inputs.dry_run == true || needs.approve_plugin_clawhub_release.result == 'success')",
|
||||
);
|
||||
expect(clawHubWorkflow).toContain(
|
||||
"uses: openclaw/clawhub/.github/workflows/package-publish.yml@c9bb13023598dcc547fdf4a93b9d42512b8c8854",
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user