From 296509370370742b6776196ee97bdde576600d25 Mon Sep 17 00:00:00 2001 From: Alex Harvey Date: Thu, 12 Nov 2026 18:35:01 -0700 Subject: [PATCH] Let the deploy skip a dataset a branch doesn't have The deploy copies the datasets into every open PR's preview from that PR's own checkout, under bash -e, so one branch without a file stopped the whole deploy. The licensed-sites and airports move to data.ferritefw.dev removes two. --- .github/workflows/deploy.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index bf50a1cc..04ca2365 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -68,6 +68,9 @@ jobs: dest="$1" mkdir -p "$dest" for f in rptrs.json tafl_min.json airports_min.json radioid-users.csv; do + # A branch that no longer has a dataset (one moved off the site) must + # not stop the deploy of every other preview and of the site itself. + [ -f "src/data/$f" ] || { echo "::notice::$f not in this checkout, skipped"; continue; } cp "src/data/$f" "$dest/$f" done EOF