From 4adcfe4d64a0b5208aedd4feffa22e6495b96ef9 Mon Sep 17 00:00:00 2001 From: Han Ngo Date: Fri, 4 Sep 2026 15:25:56 +0700 Subject: [PATCH] ci: build from the content vault tip, on a schedule and on demand --- .github/workflows/main.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index f93dc018..b4988729 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -4,6 +4,9 @@ on: push: branches: - main + workflow_dispatch: + schedule: + - cron: '17 * * * *' jobs: publish_job: @@ -16,6 +19,15 @@ jobs: token: ${{ secrets.GH_PAT }} submodules: recursive + # The committed gitlink goes stale on every content merge and the + # dispatch chain that used to bump it needs a PAT with actions:write. + # Build from the vault tip instead; nothing is pushed back. + - name: Advance vault to content main + shell: bash + run: | + git submodule update --remote --depth 1 vault + echo "vault at $(git -C vault rev-parse --short HEAD)" + - name: Install obsidian-export (cached) uses: baptiste0928/cargo-install@v3 with: