Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions .github/workflows/Docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@ on:
- main
tags: '*'
pull_request:
branches:
- main

concurrency:
# Skip intermediate builds: always.
Expand All @@ -25,4 +23,4 @@ jobs:

steps:
- name: Build and deploy Documenter.jl docs
uses: TuringLang/DocsNav/DocsDocumenter@v2
uses: TuringLang/actions/DocsDocumenter@main
39 changes: 39 additions & 0 deletions .github/workflows/DocsNav.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Rebuild docs with newest navbar

on:
# 3:25 AM UTC every Sunday -- choose an uncommon time to avoid
# periods of heavy GitHub Actions usage
schedule:
- cron: '25 3 * * 0'
# Whenever needed
workflow_dispatch:

permissions:
contents: write

jobs:
update-navbar:
runs-on: ubuntu-latest

steps:
- name: Checkout gh-pages branch
uses: actions/checkout@v4
with:
ref: gh-pages

- name: Insert navbar
uses: TuringLang/actions/DocsNav@main
with:
doc-path: '.'

- name: Commit and push changes
run: |
if [[ -n $(git status -s) ]]; then
git config user.name github-actions[bot]
git config user.email github-actions[bot]@users.noreply.github.com
git add -A
git commit -m "Update navbar (automated)"
git push
else
echo "No changes to commit"
fi
Loading