fix: allow pinned release ci refs · openclaw/openclaw@66d8fce
steipete
·
2026-05-02
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -89,8 +89,8 @@ jobs:
|
89 | 89 | WORKFLOW_REF: ${{ github.ref }} |
90 | 90 | run: | |
91 | 91 | set -euo pipefail |
92 | | - if [[ "${WORKFLOW_REF}" != "refs/heads/main" ]] && [[ ! "${WORKFLOW_REF}" =~ ^refs/heads/release/[0-9]{4}\.[1-9][0-9]*\.[1-9][0-9]*$ ]]; then |
93 | | - echo "Release checks must be dispatched from main or release/YYYY.M.D so workflow logic and secrets stay controlled." >&2 |
| 92 | + if [[ "${WORKFLOW_REF}" != "refs/heads/main" ]] && [[ ! "${WORKFLOW_REF}" =~ ^refs/heads/release/[0-9]{4}\.[1-9][0-9]*\.[1-9][0-9]*$ ]] && [[ ! "${WORKFLOW_REF}" =~ ^refs/heads/release-ci/[0-9a-f]{12}-[0-9]+$ ]]; then |
| 93 | + echo "Release checks must be dispatched from main, release/YYYY.M.D, or a Full Release Validation release-ci/<sha>-<timestamp> ref so workflow logic and secrets stay controlled." >&2 |
94 | 94 | exit 1 |
95 | 95 | fi |
96 | 96 | |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -140,6 +140,7 @@ describe("package acceptance workflow", () => {
|
140 | 140 | |
141 | 141 | it("requires full release child workflows to run at the resolved target SHA", () => { |
142 | 142 | const workflow = readFileSync(FULL_RELEASE_VALIDATION_WORKFLOW, "utf8"); |
| 143 | +const releaseChecksWorkflow = readFileSync(RELEASE_CHECKS_WORKFLOW, "utf8"); |
143 | 144 | |
144 | 145 | expect(workflow).toContain("TARGET_SHA: ${{ needs.resolve_target.outputs.sha }}"); |
145 | 146 | expect(workflow).toContain("--json status,conclusion,url,attempt,headSha,jobs"); |
@@ -148,6 +149,7 @@ describe("package acceptance workflow", () => {
|
148 | 149 | "Dispatch Full Release Validation from a ref pinned to the target SHA", |
149 | 150 | ); |
150 | 151 | expect(workflow).toContain("| Child | Result | Minutes | Head SHA | Run |"); |
| 152 | +expect(releaseChecksWorkflow).toContain("refs/heads/release-ci/[0-9a-f]{12}-[0-9]+"); |
151 | 153 | }); |
152 | 154 | |
153 | 155 | it("keeps exhaustive update migration as a separate manual package gate", () => { |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。