From dcb04cc6f8d7029f8f731e640fd4212c6e542629 Mon Sep 17 00:00:00 2001 From: Katie McFaul Date: Mon, 27 Jul 2026 11:34:05 -0400 Subject: [PATCH] fix(workflow): fix release deploy --- .github/workflows/documentation.yml | 10 ++++++++-- .github/workflows/release.yml | 2 ++ 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/.github/workflows/documentation.yml b/.github/workflows/documentation.yml index 279a8cd7f46..120b724ebba 100644 --- a/.github/workflows/documentation.yml +++ b/.github/workflows/documentation.yml @@ -4,6 +4,12 @@ on: issue_comment: types: [created] workflow_call: + inputs: + is-release: + description: Whether this is invoked from the Release workflow (skip PR permission gating). + type: boolean + required: false + default: false secrets: SURGE_LOGIN: required: true @@ -23,7 +29,7 @@ jobs: if: >- always() && !cancelled() && - (github.event_name == 'workflow_call' || needs.check-permissions.outputs.allowed == 'true') + (inputs.is-release || needs.check-permissions.outputs.allowed == 'true') env: SURGE_LOGIN: ${{ secrets.SURGE_LOGIN }} SURGE_TOKEN: ${{ secrets.SURGE_TOKEN }} @@ -39,7 +45,7 @@ jobs: ref: refs/pull/${{ env.GH_PR_NUM }}/head - name: Check out project - if: github.event_name == 'workflow_call' + if: inputs.is-release uses: actions/checkout@v4 - name: Set up and build project uses: ./.github/actions/setup-project diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 66e9c84d2df..3c4d154cd75 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -14,6 +14,8 @@ jobs: docs: name: Documentation uses: ./.github/workflows/documentation.yml + with: + is-release: true secrets: inherit deploy: