From 2b1b7a87de0ede2ad76f8aac6882205445f1ac29 Mon Sep 17 00:00:00 2001 From: eleith Date: Tue, 27 Oct 2026 16:10:05 -0700 Subject: [PATCH] Fix release tag validation in CI --- .woodpecker/cli.yml | 2 +- .woodpecker/web.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.woodpecker/cli.yml b/.woodpecker/cli.yml index ac818a8..fd80872 100644 --- a/.woodpecker/cli.yml +++ b/.woodpecker/cli.yml @@ -37,7 +37,7 @@ steps: import { readFileSync, writeFileSync } from 'node:fs'; const tag = process.env.CI_COMMIT_TAG ?? ''; - const match = /^@directory\/cli@((0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*))$/.exec(tag); + const match = /^@directory\\/cli@((0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*))$/.exec(tag); if (!match || match[0] !== tag) { throw new Error('Expected a stable @directory/cli@.. tag'); } diff --git a/.woodpecker/web.yml b/.woodpecker/web.yml index 7138ab6..7008f79 100644 --- a/.woodpecker/web.yml +++ b/.woodpecker/web.yml @@ -102,7 +102,7 @@ steps: import { readFileSync, writeFileSync } from 'node:fs'; const tag = process.env.CI_COMMIT_TAG ?? ''; - const match = /^@directory\/web@((0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*))$/.exec(tag); + const match = /^@directory\\/web@((0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*))$/.exec(tag); if (!match || match[0] !== tag) { throw new Error('Expected a stable @directory/web@.. tag'); } -- 2.54.0