File tree Expand file tree Collapse file tree 1 file changed +16
-1
lines changed Expand file tree Collapse file tree 1 file changed +16
-1
lines changed Original file line number Diff line number Diff line change 36
36
required : false
37
37
default : ' master'
38
38
type : string
39
+ base_url :
40
+ description : |
41
+ Base URL of the site. With default option, the root will come from LizardByte.github.io (app.lizardbyte.dev).
42
+ This is useful to re-use the theme config and many assets from that site; but requires you to prefix other
43
+ assets with `/<RepoName>` (e.g. `/MyRepo/assets/img/my-image.png`).
44
+
45
+ If this is set to `_auto`, the workflow will determine this value automatically.
46
+ required : false
47
+ default : ' '
48
+ type : string
39
49
secrets :
40
50
GH_BOT_EMAIL :
41
51
description : ' Email address of the bot account'
@@ -173,7 +183,11 @@ jobs:
173
183
run : |
174
184
config_file="_config_ci.yml"
175
185
echo "---" > $config_file
176
- echo "baseurl: ${{ steps.configure-pages.outputs.base_path }}" >> $config_file
186
+ if [ "${{ inputs.base_url }}" == '_auto' ]; then
187
+ echo "baseurl: '${{ steps.configure-pages.outputs.base_path }}'" >> $config_file
188
+ else
189
+ echo "baseurl: '${{ inputs.base_url }}'" >> $config_file
190
+ fi
177
191
178
192
cat $config_file
179
193
@@ -186,6 +200,7 @@ jobs:
186
200
# if inputs.config_file exists
187
201
config_files="_config_ci.yml,_config_theme.yml"
188
202
if [ -e "${{ inputs.config_file }}" ]; then
203
+ cat ${{ inputs.config_file }}
189
204
config_files="${config_files},${{ inputs.config_file }}"
190
205
fi
191
206
You can’t perform that action at this time.
0 commit comments