Skip to content

Commit 61d11a8

Browse files
committed
clean up and annotate triggers and checkouts in CI job.
Signed-off-by: michael vincerra <[email protected]>
1 parent c844363 commit 61d11a8

File tree

1 file changed

+9
-11
lines changed

1 file changed

+9
-11
lines changed

.github/workflows/github-pages.yml

+9-11
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,11 @@ name: github-pages-master
33
on:
44
schedule:
55
- cron: '55 13 * * *'
6+
# Above time reflects UTC -> PST conversion
7+
# At 6:55 am (PST/PDT) every day, run this CI job
68

79
workflow_dispatch:
8-
# Revise to: '55 13 * * *'
9-
# the latter time reflects UTC -> PST conversion
10-
# At 6:55 am (PST) every day, run this CI job
11-
10+
1211
jobs:
1312
pages:
1413
name: Build GitHub Pages
@@ -21,17 +20,16 @@ jobs:
2120
python-version: "3.8"
2221

2322
- uses: actions/checkout@v3
24-
name: Check out app/dev # checks out to the top-level dir
25-
with:
23+
name: Check out app/dev # checks out app/dev in top-level dir
24+
with:
2625
ref: 'refs/heads/app/dev'
2726

2827
- uses: actions/checkout@v3
29-
name: Check out master
30-
with:
28+
name: Check out master # checks out master in subdirectory
29+
with:
3130
ref: 'refs/heads/master'
32-
path: master # subdirectory
31+
path: master
3332

34-
# TODO: change to 'python3 app/dev/src/db.py master' per actions/checkout@3
3533
- name: Build JSON DB
3634
run: |
3735
python3 -m pip install -r src/requirements.txt
@@ -57,7 +55,7 @@ jobs:
5755
wget https://raw.githubusercontent.com/oneapi-src/oneAPI-samples/master/Tools/GPU-Occupancy-Calculator/index.html
5856
5957
- name: Push docs
60-
if: ${{ github.ref == 'refs/heads/master' }}
58+
if: ${{ github.ref == 'refs/heads/master' }} # only if this workflow is run from the master branch, push docs
6159
env:
6260
GITHUB_USER: ${{ github.actor }}
6361
GITHUB_TOKEN: ${{ github.token }}

0 commit comments

Comments
 (0)