From e2117d9a02419cd534b672423454b1fb43105a37 Mon Sep 17 00:00:00 2001 From: Keavon Chambers Date: Wed, 22 Apr 2026 16:00:38 -0700 Subject: [PATCH] Fix CI not attaching a "View deployment" button in PRs for build links --- .github/workflows/build.yml | 21 +++++++++++-------- .../src/components/window/MainWindow.svelte | 2 +- 2 files changed, 13 insertions(+), 10 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 0cad72dc..8ca68b96 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -157,18 +157,21 @@ jobs: REF="master" ENVIRONMENT="graphite-dev (Production)" else - REF="$(git rev-parse HEAD)" + REF="${{ inputs.checkout_ref || github.head_ref || github.ref_name }}" ENVIRONMENT="graphite-dev (Preview)" fi - DEPLOY_ID=$(gh api \ - -X POST \ - -H "Accept: application/vnd.github+json" \ - repos/${{ github.repository }}/deployments \ - --input - \ - --jq '.id' </dev/null) || DEPLOY_ID=$(create_deployment "$(git rev-parse HEAD)") gh api \ -X POST \ -H "Accept: application/vnd.github+json" \ diff --git a/frontend/src/components/window/MainWindow.svelte b/frontend/src/components/window/MainWindow.svelte index 73e08809..c0969ea2 100644 --- a/frontend/src/components/window/MainWindow.svelte +++ b/frontend/src/components/window/MainWindow.svelte @@ -33,7 +33,7 @@ {#if $tooltip.visible} {/if} - {#if import.meta.env.MODE === "native" && new Date() > new Date("2026-04-30")} + {#if import.meta.env.MODE === "native" && new Date() > new Date("2026-07-01")}