File tree Expand file tree Collapse file tree 2 files changed +46
-2
lines changed Expand file tree Collapse file tree 2 files changed +46
-2
lines changed Original file line number Diff line number Diff line change
1
+ name : manual
2
+
3
+ on :
4
+ workflow_dispatch :
5
+ inputs :
6
+ diffbase :
7
+ description : the version or commit to diff against
8
+ required : false
9
+ type : string
10
+
11
+ env :
12
+ REGISTRY : ghcr.io
13
+ IMAGE_NAME : ${{ github.repository }}
14
+
15
+ jobs :
16
+ # Use the latest container to render the samples with the given diff
17
+ render-samples :
18
+ needs : build-container
19
+ uses : ./.github/workflows/render.yml
20
+ with :
21
+ container-version : latest
22
+ input : guide.tcg
23
+ workflow : pr
24
+ render-samples :
25
+ needs : build-container
26
+ uses : ./.github/workflows/render.yml
27
+ with :
28
+ container-version : latest
29
+ input : guide.tcg
30
+ workflow : pr
31
+ manual_diffbase : ${{ inputs.diffbase }}
Original file line number Diff line number Diff line change 20
20
required : true
21
21
type : string
22
22
workflow :
23
- description : the workflow to run ('pr', 'push', 'release')
23
+ description : the workflow to run ('pr', 'push', 'release', 'manual' )
24
24
required : true
25
25
type : string
26
+ manual_diffbase :
27
+ description : diffbase for manual workflow
28
+ required : false
29
+ type : string
26
30
27
31
jobs :
28
32
render :
77
81
diffbase : " ${{ github.event.pull_request.base.sha }}"
78
82
pr-number : " ${{ github.event.number }}"
79
83
pr-repo : " ${{ github.repository }}"
84
+ # Render the document with diffs in the 'manual' mode.
85
+ - name : Render
86
+ if : inputs.workflow == 'manual'
87
+ uses : ./.github/actions/render
88
+ with :
89
+ input-md : ${{ inputs.input }}
90
+ output-basename : ${{ steps.gen_output_name.outputs.OUTPUT_FILENAME }}
91
+ pdf : true
92
+ diffbase : " ${{ inputs.manual_diffbase }}"
80
93
# Render the document without diffs in other modes.
81
94
- name : Render
82
- if : inputs.workflow != 'pr'
95
+ if : inputs.workflow != 'pr' && inputs.workflow != 'manual'
83
96
uses : ./.github/actions/render
84
97
with :
85
98
input-md : ${{ inputs.input }}
You can’t perform that action at this time.
0 commit comments