File tree 2 files changed +4
-11
lines changed
2 files changed +4
-11
lines changed Original file line number Diff line number Diff line change 36
36
id : build
37
37
continue-on-error : true
38
38
run : |
39
- CI =false DOCUSAURUS_IGNORE_SSG_WARNINGS=true yarn build
39
+ DOCS_PULL =false DOCUSAURUS_IGNORE_SSG_WARNINGS=true yarn build
40
40
echo "exit_code=$?" >> $GITHUB_OUTPUT
41
41
42
42
- name : Check for validation failures
Original file line number Diff line number Diff line change @@ -11,16 +11,12 @@ function parse_args() {
11
11
echo " "
12
12
echo " Options:"
13
13
echo " -l Path to a local copy of the ClickHouse repository."
14
- echo " -f Force pull from GitHub even in CI environment."
15
14
echo " -h Display this help message."
16
15
exit 0
17
16
;;
18
17
l)
19
18
local_path=" $OPTARG "
20
19
;;
21
- f)
22
- force_pull=true
23
- ;;
24
20
\? )
25
21
echo " Invalid option: -$OPTARG " >&2
26
22
exit 1
@@ -103,14 +99,11 @@ main() {
103
99
104
100
if [[ -z " $local_path " ]]; then
105
101
106
- # Check if in CI environment and force_pull is not set
107
- if [[ " $CI " == " true " && " $force_pull " == " false" ]]; then
108
- echo " CI environment detected, expecting /ClickHouse without having to pull the repo"
102
+ # Check if override is set
103
+ if [[ " $MASTER_PULL " == " false" ]]; then
104
+ echo " expecting /ClickHouse folder to be present without having to pull it from the repo"
109
105
copy_docs_locally " /ClickHouse"
110
106
else
111
- if [[ " $force_pull " == " true" && " $CI " == " true" ]]; then
112
- echo " Force pull enabled, ignoring CI environment and pulling from GitHub"
113
- fi
114
107
git clone --depth 1 --branch master https://github.com/ClickHouse/ClickHouse
115
108
# Copy docs from cloned repository
116
109
copy_docs_locally " $( pwd) /ClickHouse"
You can’t perform that action at this time.
0 commit comments