File tree Expand file tree Collapse file tree 2 files changed +40
-3
lines changed Expand file tree Collapse file tree 2 files changed +40
-3
lines changed Original file line number Diff line number Diff line change 6
6
- main
7
7
tags : ' *'
8
8
pull_request :
9
- branches :
10
- - main
11
9
12
10
concurrency :
13
11
# Skip intermediate builds: always.
25
23
26
24
steps :
27
25
- name : Build and deploy Documenter.jl docs
28
- uses : TuringLang/DocsNav /DocsDocumenter@v2
26
+ uses : TuringLang/actions /DocsDocumenter@main
Original file line number Diff line number Diff line change
1
+ name : Rebuild docs with newest navbar
2
+
3
+ on :
4
+ # 3:25 AM UTC every Sunday -- choose an uncommon time to avoid
5
+ # periods of heavy GitHub Actions usage
6
+ schedule :
7
+ - cron : ' 25 3 * * 0'
8
+ # Whenever needed
9
+ workflow_dispatch :
10
+
11
+ permissions :
12
+ contents : write
13
+
14
+ jobs :
15
+ update-navbar :
16
+ runs-on : ubuntu-latest
17
+
18
+ steps :
19
+ - name : Checkout gh-pages branch
20
+ uses : actions/checkout@v4
21
+ with :
22
+ ref : gh-pages
23
+
24
+ - name : Insert navbar
25
+ uses : TuringLang/actions/DocsNav@main
26
+ with :
27
+ doc-path : ' .'
28
+
29
+ - name : Commit and push changes
30
+ run : |
31
+ if [[ -n $(git status -s) ]]; then
32
+ git config user.name github-actions[bot]
33
+ git config user.email github-actions[bot]@users.noreply.github.com
34
+ git add -A
35
+ git commit -m "Update navbar (automated)"
36
+ git push
37
+ else
38
+ echo "No changes to commit"
39
+ fi
You can’t perform that action at this time.
0 commit comments