From 26620810ffb8e848a92d5f50ccd7fece5b19e99d Mon Sep 17 00:00:00 2001 From: Kevin Longe <273747162+kvlonge@users.noreply.github.com> Date: Sat, 14 Nov 2026 17:08:07 +0000 Subject: [PATCH] ci: let release PRs update the UI demo's version Release Please now writes each release's version into the demo's prepared.json and recorded /api/status, so both release-PR content checks allow those two files. --- .github/workflows/pull-request-metadata.yml | 2 +- .github/workflows/release-please.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/pull-request-metadata.yml b/.github/workflows/pull-request-metadata.yml index 72dad5aa..927cb932 100644 --- a/.github/workflows/pull-request-metadata.yml +++ b/.github/workflows/pull-request-metadata.yml @@ -113,7 +113,7 @@ jobs: unexpected_files="$(gh api --paginate \ "repos/${GITHUB_REPOSITORY}/pulls/${pull_request}/files" \ --jq '.[].filename' | grep -Ev \ - '^(\.release-please-manifest\.json|CHANGELOG\.md|Cargo\.lock|Cargo\.toml|pyproject\.toml|uv\.lock)$' || true)" + '^(\.release-please-manifest\.json|CHANGELOG\.md|Cargo\.lock|Cargo\.toml|pyproject\.toml|uv\.lock|ui/src/lib/demo/(prepared|recordings)\.json)$' || true)" if [[ -n "${unexpected_files}" ]]; then echo "Release pull request contains non-metadata changes:" >&2 echo "${unexpected_files}" >&2 diff --git a/.github/workflows/release-please.yml b/.github/workflows/release-please.yml index 396c25f5..2c0c4666 100644 --- a/.github/workflows/release-please.yml +++ b/.github/workflows/release-please.yml @@ -105,7 +105,7 @@ jobs: exit 1 fi unexpected_files="$(gh pr view "${release_pr}" --repo "${GITHUB_REPOSITORY}" \ - --json files --jq '[.files[].path | select(. != ".release-please-manifest.json" and . != "CHANGELOG.md" and . != "pyproject.toml" and . != "uv.lock" and . != "Cargo.toml" and . != "Cargo.lock")] | join("\n")')" + --json files --jq '[.files[].path | select(. != ".release-please-manifest.json" and . != "CHANGELOG.md" and . != "pyproject.toml" and . != "uv.lock" and . != "Cargo.toml" and . != "Cargo.lock" and . != "ui/src/lib/demo/prepared.json" and . != "ui/src/lib/demo/recordings.json")] | join("\n")')" if [[ -n "${unexpected_files}" ]]; then echo "Release pull request contains non-metadata changes:" >&2 echo "${unexpected_files}" >&2