mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 06:20:43 +00:00
ci: cancel superseded release validation runs
This commit is contained in:
@@ -82,8 +82,8 @@ permissions:
|
||||
contents: read
|
||||
|
||||
concurrency:
|
||||
group: full-release-validation-${{ inputs.ref }}
|
||||
cancel-in-progress: ${{ inputs.ref == 'main' }}
|
||||
group: full-release-validation-${{ inputs.ref }}-${{ inputs.rerun_group }}
|
||||
cancel-in-progress: true
|
||||
|
||||
env:
|
||||
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: "true"
|
||||
|
||||
@@ -55,8 +55,8 @@ on:
|
||||
- qa-live
|
||||
|
||||
concurrency:
|
||||
group: openclaw-release-checks-${{ inputs.ref }}
|
||||
cancel-in-progress: ${{ inputs.ref == 'main' }}
|
||||
group: openclaw-release-checks-${{ inputs.expected_sha || inputs.ref }}-${{ inputs.rerun_group }}
|
||||
cancel-in-progress: true
|
||||
|
||||
env:
|
||||
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: "true"
|
||||
|
||||
@@ -287,6 +287,23 @@ describe("scripts/lib/plugin-prerelease-test-plan.mjs", () => {
|
||||
]);
|
||||
});
|
||||
|
||||
it("cancels superseded manual release validation runs for the same target and group", () => {
|
||||
const releaseChecksWorkflow = parse(
|
||||
readFileSync(".github/workflows/openclaw-release-checks.yml", "utf8"),
|
||||
);
|
||||
const fullReleaseWorkflow = readFullReleaseValidationWorkflow();
|
||||
|
||||
expect(releaseChecksWorkflow.concurrency).toEqual({
|
||||
group:
|
||||
"openclaw-release-checks-${{ inputs.expected_sha || inputs.ref }}-${{ inputs.rerun_group }}",
|
||||
"cancel-in-progress": true,
|
||||
});
|
||||
expect(fullReleaseWorkflow.concurrency).toEqual({
|
||||
group: "full-release-validation-${{ inputs.ref }}-${{ inputs.rerun_group }}",
|
||||
"cancel-in-progress": true,
|
||||
});
|
||||
});
|
||||
|
||||
it("keeps the live-ish availability check redacted", () => {
|
||||
const output = execFileSync(
|
||||
process.execPath,
|
||||
|
||||
Reference in New Issue
Block a user