Skip to content

Commit c82a87e

Browse files
authored
fix(workflow): fix release deploy (#12598)
* fix(workflow): fix release deploy * update check for checkout * update check
1 parent 7385d3f commit c82a87e

2 files changed

Lines changed: 10 additions & 2 deletions

File tree

.github/workflows/documentation.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,12 @@ on:
44
issue_comment:
55
types: [created]
66
workflow_call:
7+
inputs:
8+
is-release:
9+
description: Whether this is invoked from the Release workflow (skip PR permission gating).
10+
type: boolean
11+
required: false
12+
default: false
713
secrets:
814
SURGE_LOGIN:
915
required: true
@@ -23,7 +29,7 @@ jobs:
2329
if: >-
2430
always() &&
2531
!cancelled() &&
26-
(github.event_name == 'workflow_call' || needs.check-permissions.outputs.allowed == 'true')
32+
(inputs.is-release || needs.check-permissions.outputs.allowed == 'true')
2733
env:
2834
SURGE_LOGIN: ${{ secrets.SURGE_LOGIN }}
2935
SURGE_TOKEN: ${{ secrets.SURGE_TOKEN }}
@@ -39,7 +45,7 @@ jobs:
3945
ref: refs/pull/${{ env.GH_PR_NUM }}/head
4046

4147
- name: Check out project
42-
if: github.event_name == 'workflow_call'
48+
if: inputs.is-release || github.event_name == 'workflow_call'
4349
uses: actions/checkout@v4
4450
- name: Set up and build project
4551
uses: ./.github/actions/setup-project

.github/workflows/release.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ jobs:
1414
docs:
1515
name: Documentation
1616
uses: ./.github/workflows/documentation.yml
17+
with:
18+
is-release: true
1719
secrets: inherit
1820

1921
deploy:

0 commit comments

Comments
 (0)