Skip to content

Update submodules #1011

Update submodules

Update submodules #1011

Workflow file for this run

name: Update submodules
on: workflow_dispatch
jobs:
publish_job:
runs-on: ubuntu-latest
name: Pull and update submodules
steps:
- name: Checkout contents repo
uses: actions/checkout@v4
with:
token: ${{ secrets.DWARVES_PAT }}
submodules: recursive
fetch-depth: 10
- name: Install devbox
uses: jetpack-io/devbox-install-action@v0.11.0
with:
enable-cache: true
devbox-version: 0.13.3
- name: Export DB
shell: bash
run: |
git config --global user.email "actions@github.com"
git config --global user.name "GitHub Actions"
devbox run fetch
devbox run duckdb-export
env:
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
INFINITY_API_KEY: ${{ secrets.INFINITY_API_KEY }}
INFINITY_OPENAI_BASE_URL: ${{ secrets.INFINITY_OPENAI_BASE_URL }}
JINA_API_KEY: ${{ secrets.JINA_API_KEY }}
JINA_BASE_URL: ${{ secrets.JINA_BASE_URL }}
- name: Commit and push changes
run: |
git config --global user.email "actions@github.com"
git config --global user.name "GitHub Actions"
git submodule foreach --recursive "git add --all; git commit -m 'chore(ci): update submodule' || echo 'No changes committed'; git push"
git add --all
git commit -m "chore(ci): update submodules and reindex" || echo "No changes committed"
git push