ci: run install smoke on manual dispatch · openclaw/openclaw@72b0e3d
steipete
·
2026-04-24
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -34,6 +34,7 @@ jobs:
|
34 | 34 | submodules: false |
35 | 35 | |
36 | 36 | - name: Ensure preflight base commit |
| 37 | +if: github.event_name != 'workflow_dispatch' |
37 | 38 | uses: ./.github/actions/ensure-base-commit |
38 | 39 | with: |
39 | 40 | base-sha: ${{ github.event_name == 'push' && github.event.before || github.event.pull_request.base.sha }} |
@@ -45,7 +46,7 @@ jobs:
|
45 | 46 | |
46 | 47 | - name: Detect changed smoke scope |
47 | 48 | id: changed_scope |
48 | | -if: steps.docs_scope.outputs.docs_only != 'true' |
| 49 | +if: github.event_name != 'workflow_dispatch' && steps.docs_scope.outputs.docs_only != 'true' |
49 | 50 | shell: bash |
50 | 51 | run: | |
51 | 52 | set -euo pipefail |
@@ -62,12 +63,16 @@ jobs:
|
62 | 63 | id: manifest |
63 | 64 | env: |
64 | 65 | OPENCLAW_CI_DOCS_ONLY: ${{ steps.docs_scope.outputs.docs_only }} |
| 66 | +OPENCLAW_CI_FORCE_INSTALL_SMOKE: ${{ github.event_name == 'workflow_dispatch' && 'true' || 'false' }} |
65 | 67 | OPENCLAW_CI_RUN_CHANGED_SMOKE: ${{ steps.changed_scope.outputs.run_changed_smoke || 'false' }} |
66 | 68 | run: | |
67 | 69 | docs_only="${OPENCLAW_CI_DOCS_ONLY:-false}" |
| 70 | + force_install_smoke="${OPENCLAW_CI_FORCE_INSTALL_SMOKE:-false}" |
68 | 71 | run_changed_smoke="${OPENCLAW_CI_RUN_CHANGED_SMOKE:-false}" |
69 | 72 | run_install_smoke=false |
70 | | - if [ "$docs_only" != "true" ] && [ "$run_changed_smoke" = "true" ]; then |
| 73 | + if [ "$force_install_smoke" = "true" ]; then |
| 74 | + run_install_smoke=true |
| 75 | + elif [ "$docs_only" != "true" ] && [ "$run_changed_smoke" = "true" ]; then |
71 | 76 | run_install_smoke=true |
72 | 77 | fi |
73 | 78 | { |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -118,5 +118,7 @@ describe("bun global install smoke", () => {
|
118 | 118 | expect(workflow).toContain( |
119 | 119 | "OPENCLAW_BUN_GLOBAL_SMOKE_DIST_IMAGE: openclaw-dockerfile-smoke:local", |
120 | 120 | ); |
| 121 | +expect(workflow).toContain("OPENCLAW_CI_FORCE_INSTALL_SMOKE"); |
| 122 | +expect(workflow).toContain('if [ "$force_install_smoke" = "true" ]; then'); |
121 | 123 | }); |
122 | 124 | }); |
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。