From d3fbdc61ce48bae51c6014ffdd442522cef72a7c Mon Sep 17 00:00:00 2001 From: Radoslav Dimitrov Date: Sat, 5 Sep 2026 22:48:16 +0300 Subject: [PATCH] ci: detect more invalid server publish paths (#1620) ## Summary - detect publish attempts under `data/data/servers/` - detect server-looking JSON files directly under `data/` - keep the stage-one and privileged stage-two classifiers in sync ## Testing - verified both new patterns against PRs #1600 and #1589 - verified ordinary files such as `data/example.json` remain unmatched - ran `git diff --check` --- .github/workflows/close-invalid-publish-prs.yml | 2 ++ .github/workflows/detect-invalid-publish-prs.yml | 2 ++ 2 files changed, 4 insertions(+) diff --git a/.github/workflows/close-invalid-publish-prs.yml b/.github/workflows/close-invalid-publish-prs.yml index 8666c3b..53ce498 100644 --- a/.github/workflows/close-invalid-publish-prs.yml +++ b/.github/workflows/close-invalid-publish-prs.yml @@ -127,6 +127,8 @@ jobs: for f in "${FILES[@]}"; do if [[ "$f" == servers/* \ || "$f" == data/servers/* \ + || "$f" == data/data/servers/* \ + || "$f" =~ ^data/[^/]*server\.json$ \ || "$f" == "data/seed.json" \ || "$f" == "server.json" \ || "$f" == "servers.json" ]]; then diff --git a/.github/workflows/detect-invalid-publish-prs.yml b/.github/workflows/detect-invalid-publish-prs.yml index c200f86..816e169 100644 --- a/.github/workflows/detect-invalid-publish-prs.yml +++ b/.github/workflows/detect-invalid-publish-prs.yml @@ -63,6 +63,8 @@ jobs: for f in "${FILES[@]}"; do if [[ "$f" == servers/* \ || "$f" == data/servers/* \ + || "$f" == data/data/servers/* \ + || "$f" =~ ^data/[^/]*server\.json$ \ || "$f" == "data/seed.json" \ || "$f" == "server.json" \ || "$f" == "servers.json" ]]; then