File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change 34
34
type : string
35
35
description : " Type of source docs. Currently supports 'hugo' and 'sphinx'"
36
36
default : hugo
37
+ force_hugo_theme_version :
38
+ type : string
39
+ description : " Overrides default of latest hugo theme. Useful for testing pre-release versions. Must start with 'v' before version."
40
+ default : " "
37
41
38
42
env :
39
43
GO_VERISON : " 1.21" # Go version used for `hugo mod get`
78
82
DOCS_SOURCE_PATH : ${{inputs.docs_source_path}}
79
83
EVENT_ACTION : ${{github.event.action}}
80
84
DEPLOYMENT_ENV : ${{inputs.environment}}
85
+ THEME_VERSION : ${{inputs.force_hugo_theme_version}}
81
86
82
87
concurrency :
83
88
group : ${{ github.workflow }}-${{ github.ref }}
@@ -149,7 +154,7 @@ jobs:
149
154
uses : actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.7.1
150
155
151
156
- name : Get latest hugo theme
152
- if : inputs.doc_type == 'hugo'
157
+ if : inputs.doc_type == 'hugo' && inputs.force_hugo_theme_version == ''
153
158
run : echo "THEME_VERSION=$(curl -s https://api.github.com/repos/nginxinc/nginx-hugo-theme/releases/latest | jq -r ".tag_name")" >> "$GITHUB_ENV"
154
159
155
160
# ## Hugo builds
You can’t perform that action at this time.
0 commit comments