From cce6e0ee1fe495eedd92711cb7bac496a67db5c3 Mon Sep 17 00:00:00 2001 From: E Date: Fri, 2 Oct 2026 10:36:36 -0400 Subject: [PATCH] ci: fix relay deploy (positional path, tolerant diff guard) --- .github/workflows/deploy-railway.yml | 6 ++++-- live/.ci-deploy-test | 0 2 files changed, 4 insertions(+), 2 deletions(-) delete mode 100644 live/.ci-deploy-test diff --git a/.github/workflows/deploy-railway.yml b/.github/workflows/deploy-railway.yml index 81eb582..4c723a7 100644 --- a/.github/workflows/deploy-railway.yml +++ b/.github/workflows/deploy-railway.yml @@ -22,10 +22,12 @@ jobs: RAILWAY_TOKEN: ${{ secrets.RAILWAY_TOKEN }} run: | if [ -z "$RAILWAY_TOKEN" ]; then echo "no RAILWAY_TOKEN secret - skipping"; exit 0; fi - if ! git diff --quiet "$GITHUB_EVENT_BEFORE" "$GITHUB_SHA" -- live/; then + # GITHUB_EVENT_BEFORE is empty on some push events; treat that as + # "deploy" rather than erroring on a bad revision + if [ -z "$GITHUB_EVENT_BEFORE" ] || ! git diff --quiet "$GITHUB_EVENT_BEFORE" "$GITHUB_SHA" -- live/ 2>/dev/null; then npx -y @railway/cli@latest up --project 11f1d169-3b88-40e7-a054-f4b79e89c138 \ --environment e1abb91d-1146-4601-aabf-cfb9a8eef2b2 \ - --service saw --path live --detach + --service saw --detach live else echo "live/ unchanged - skip" fi diff --git a/live/.ci-deploy-test b/live/.ci-deploy-test deleted file mode 100644 index e69de29..0000000