File tree 2 files changed +9
-2
lines changed
2 files changed +9
-2
lines changed Original file line number Diff line number Diff line change 22
22
id : files
23
23
uses : jitterbit/get-changed-files@v1
24
24
- name : Checkout QuantEcon theme
25
+ if : github.event.pull_request.head.repo.full_name == github.repository
25
26
uses : actions/checkout@v2
26
27
with :
27
28
repository : QuantEcon/lecture-python-programming.theme
40
41
- name : Build website files
41
42
shell : bash -l {0}
42
43
run : |
43
- bash scripts/build-website.sh "${{ steps.files.outputs.added_modified }}"
44
+ bash scripts/build-website.sh "${{ steps.files.outputs.added_modified }}" "${{ github.event.pull_request.head.repo.full_name == github.repository }}"
44
45
- name : Preview Deploy to Netlify
45
46
46
47
if : env.BUILD_NETLIFY == 'true'
Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
2
3
3
MODIFIED_FILES=" $1 "
4
+ PRIVATE_THEME=$2
4
5
5
6
RST_FILES=" "
6
7
for F in $MODIFIED_FILES
11
12
fi
12
13
done
13
14
echo " List of Changed RST Files: $RST_FILES "
15
+ echo " Building with Private theme: $PRIVATE_THEME "
14
16
if [ -z " $RST_FILES " ]; then
15
17
echo " ::set-env name=BUILD_NETLIFY::false"
16
18
echo " No RST Files have changed -- nothing to do in this PR"
17
19
else
18
20
echo " ::set-env name=BUILD_NETLIFY::true"
19
21
RST_FILES=" $RST_FILES source/rst/index_toc.rst"
20
- make website THEMEPATH=theme/lecture-python-programming.theme FILES=" $RST_FILES "
22
+ if [ " $PRIVATE_THEME " = true ]; then
23
+ make website THEMEPATH=theme/lecture-python-programming.theme FILES=" $RST_FILES "
24
+ else
25
+ make website FILES=" $RST_FILES "
26
+ fi
21
27
ls _build/website/jupyter_html/* # Ensure build files are created
22
28
fi
You can’t perform that action at this time.
0 commit comments