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 3636 required : false
3737 default : ' master'
3838 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
3949 secrets :
4050 GH_BOT_EMAIL :
4151 description : ' Email address of the bot account'
@@ -173,7 +183,11 @@ jobs:
173183 run : |
174184 config_file="_config_ci.yml"
175185 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
177191
178192 cat $config_file
179193
@@ -186,6 +200,7 @@ jobs:
186200 # if inputs.config_file exists
187201 config_files="_config_ci.yml,_config_theme.yml"
188202 if [ -e "${{ inputs.config_file }}" ]; then
203+ cat ${{ inputs.config_file }}
189204 config_files="${config_files},${{ inputs.config_file }}"
190205 fi
191206
You can’t perform that action at this time.
0 commit comments