Skip to content

Commit f28796e

Browse files
authored
allow passing extra-build-options to reusable workflow (#239)
1 parent 983c9f5 commit f28796e

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

.github/workflows/render.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,10 @@ on:
3131
description: version to render (defaults is default branch)
3232
required: false
3333
type: string
34+
extra-build-options:
35+
description: additional build options to be passed to build.sh
36+
required: false
37+
type: string
3438

3539
jobs:
3640
render:
@@ -98,6 +102,7 @@ jobs:
98102
diffbase: "${{ github.event.pull_request.base.sha }}"
99103
pr-number: "${{ github.event.number }}"
100104
pr-repo: "${{ github.repository }}"
105+
extra-build-options: "${{ inputs.extra-build-options }}"
101106
# Render the document with diffs in the 'manual' mode.
102107
- name: Render
103108
if: inputs.workflow == 'manual'
@@ -107,6 +112,7 @@ jobs:
107112
output-basename: ${{ steps.gen_output_name.outputs.OUTPUT_FILENAME }}
108113
pdf: true
109114
diffbase: "${{ inputs.manual_diffbase }}"
115+
extra-build-options: "${{ inputs.extra-build-options }}"
110116
# Render the document without diffs in other modes.
111117
- name: Render
112118
if: inputs.workflow != 'pr' && inputs.workflow != 'manual'
@@ -115,6 +121,7 @@ jobs:
115121
input-md: ${{ inputs.input }}
116122
output-basename: ${{ steps.gen_output_name.outputs.OUTPUT_FILENAME }}
117123
pdf: true
124+
extra-build-options: "${{ inputs.extra-build-options }}"
118125

119126
# Upload the PDF to the release in 'release' mode
120127
- name: Upload to release

0 commit comments

Comments
 (0)