Skip to content
This repository has been archived by the owner on Feb 29, 2024. It is now read-only.

Update Backend Docs #386

Update Backend Docs

Update Backend Docs #386

Workflow file for this run

name: Update Backend Docs
on:
schedule:
- cron: '17 1,9,17 * * *' # every 8 hours
workflow_dispatch:
jobs:
update-backend-docs:
runs-on: ubuntu-22.04
timeout-minutes: 10
steps:
- name: Prepare JDK
uses: actions/setup-java@v3
with:
java-version: 17
distribution: 'temurin'
- name: Install Clojure CLI
shell: bash
run: |
curl -O https://download.clojure.org/install/linux-install-1.11.1.1262.sh &&
sudo bash ./linux-install-1.11.1.1262.sh
- name: Checkout metabase repo
uses: actions/checkout@v4
with:
repository: metabase/metabase
path: metabase
- name: Checkout backend-docs repo
uses: actions/checkout@v4
with:
path: backend-docs
ref: gh-pages
- name: Build docs
run: cd metabase && clojure -M:marginalia
- name: Update docs
run: |
cd $GITHUB_WORKSPACE/backend-docs
git config user.name github-actions
git config user.email [email protected]
cp $GITHUB_WORKSPACE/metabase/backend-docs/uberdoc.html index.html
sed -i 's/<html><head>/<html><head><meta name="robots" content="noindex">/' index.html
git add index.html
git commit -m "Update backend docs on $(date)"
git push