Files
sim/.github/workflows/docs.yml
dependabot[bot] 356c4b634c ci: bump the actions group across 1 directory with 7 updates (#9621)
Bumps the actions group with 7 updates in the / directory:

| Package | From | To |
| --- | --- | --- |
| [useblacksmith/checkout](https://github.com/useblacksmith/checkout) | `1.8.1` | `1.8.2` |
| [actions/setup-java](https://github.com/actions/setup-java) | `5.7.0` | `6.1.0` |
| [actions/setup-dotnet](https://github.com/actions/setup-dotnet) | `5.4.0` | `6.0.0` |
| [actions/setup-go](https://github.com/actions/setup-go) | `6.5.0` | `7.0.0` |
| [tailscale/github-action](https://github.com/tailscale/github-action) | `4.2.0` | `4.4.0` |
| [oras-project/setup-oras](https://github.com/oras-project/setup-oras) | `2.0.2` | `2.0.3` |
| [helm/chart-releaser-action](https://github.com/helm/chart-releaser-action) | `1.7.0` | `1.9.0` |



Updates `useblacksmith/checkout` from 1.8.1 to 1.8.2
- [Changelog](https://github.com/useblacksmith/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/useblacksmith/checkout/compare/25227e61ff9dafe400e22fa487b673eac4e4409a...2b9fe87d796feea153b455ec2f3125b471a7b0e7)

Updates `actions/setup-java` from 5.7.0 to 6.1.0
- [Release notes](https://github.com/actions/setup-java/releases)
- [Commits](https://github.com/actions/setup-java/compare/b6effb05e454b25005698d916606bdc6ffcbf961...b843ebf9b913146b38da2eaa7aeddf76074ae1ad)

Updates `actions/setup-dotnet` from 5.4.0 to 6.0.0
- [Release notes](https://github.com/actions/setup-dotnet/releases)
- [Commits](https://github.com/actions/setup-dotnet/compare/26b0ec14cb23fa6904739307f278c14f94c95bf1...a98b56852c35b8e3190ac28c8c2271da59106c68)

Updates `actions/setup-go` from 6.5.0 to 7.0.0
- [Release notes](https://github.com/actions/setup-go/releases)
- [Commits](https://github.com/actions/setup-go/compare/924ae3a1cded613372ab5595356fb5720e22ba16...b7ad1dad31e06c5925ef5d2fc7ad053ef454303e)

Updates `tailscale/github-action` from 4.2.0 to 4.4.0
- [Release notes](https://github.com/tailscale/github-action/releases)
- [Commits](https://github.com/tailscale/github-action/compare/d1b6cd204f8dceda5b3eaad7f1f767be390056cd...064b10558093f38325e838ddea35486bdc6b1d5c)

Updates `oras-project/setup-oras` from 2.0.2 to 2.0.3
- [Release notes](https://github.com/oras-project/setup-oras/releases)
- [Commits](https://github.com/oras-project/setup-oras/compare/005458ad77f1c8facd38a094e4af2e69e5607ff4...5e2f2482b30b0cb3e14e67f89a80c88c659a7c63)

Updates `helm/chart-releaser-action` from 1.7.0 to 1.9.0
- [Release notes](https://github.com/helm/chart-releaser-action/releases)
- [Commits](https://github.com/helm/chart-releaser-action/compare/cae68fefc6b5f367a0275617c9f83181ba54714f...92c6b97fa9f664492a2592e0d1d80bc6bf378957)

---
updated-dependencies:
- dependency-name: useblacksmith/checkout
  dependency-version: 1.8.2
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: actions
- dependency-name: actions/setup-java
  dependency-version: 6.1.0
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: actions
- dependency-name: actions/setup-dotnet
  dependency-version: 6.0.0
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: actions
- dependency-name: actions/setup-go
  dependency-version: 7.0.0
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: actions
- dependency-name: tailscale/github-action
  dependency-version: 4.4.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: actions
- dependency-name: oras-project/setup-oras
  dependency-version: 2.0.3
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: actions
- dependency-name: helm/chart-releaser-action
  dependency-version: 1.9.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: actions
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-11-03 09:25:03 -08:00

106 lines
3.7 KiB
YAML

name: docs
on:
workflow_call:
secrets:
DATABASE_URL:
required: false
OPENAI_API_KEY:
required: false
TS_OAUTH_CLIENT_ID:
required: false
TS_AUDIENCE:
required: false
workflow_dispatch:
inputs:
publish:
description: I verified the matching docs deployment and a restorable index backup
type: boolean
required: true
default: false
deployed_revision:
description: Full source SHA of the verified serving docs deployment
type: string
required: true
deployment_id:
description: Verified serving docs deployment ID
type: string
required: true
backup_reference:
description: Restorable docs_embeddings backup identifier (no credentials)
type: string
required: true
permissions:
contents: read
jobs:
embeddings:
name: embeddings
# Network-bound on the embeddings API: ~9% CPU and ~3% peak memory on 8 vCPU.
runs-on: ${{ (vars.CI_PROVIDER == '' || vars.CI_PROVIDER == 'blacksmith') && 'blacksmith-2vcpu-ubuntu-2404' || 'ubuntu-latest' }}
timeout-minutes: 30
if: github.ref == 'refs/heads/main' && github.event_name == 'workflow_dispatch' && inputs.publish
concurrency:
group: docs-search-index-production
cancel-in-progress: false
permissions:
contents: read
# Tailscale workload identity federation exchanges this job's OIDC token.
id-token: write
steps:
- name: Record verified deployment and backup
env:
DEPLOYED_REVISION: ${{ inputs.deployed_revision }}
DEPLOYMENT_ID: ${{ inputs.deployment_id }}
BACKUP_REFERENCE: ${{ inputs.backup_reference }}
run: |
test "$DEPLOYED_REVISION" = "$GITHUB_SHA"
test -n "$DEPLOYMENT_ID"
test -n "$BACKUP_REFERENCE"
jq -n --arg revision "$DEPLOYED_REVISION" --arg deployment "$DEPLOYMENT_ID" \
--arg backup "$BACKUP_REFERENCE" --arg actor "$GITHUB_ACTOR" \
'{revision: $revision, deploymentId: $deployment, backupReference: $backup, verifiedBy: $actor}' \
> "$RUNNER_TEMP/docs-search-authorization.json"
- name: Checkout code
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v6
with:
ref: ${{ github.sha }}
persist-credentials: false
- name: Setup workspace
uses: ./.github/actions/setup
with:
provider: ${{ vars.CI_PROVIDER }}
node-version: '24'
# Database IP restrictions admit the tailnet's app connector; see migrate.yml.
- name: Join the tailnet
if: vars.CI_DB_TAILNET == 'true'
uses: tailscale/github-action@064b10558093f38325e838ddea35486bdc6b1d5c # v4.4.0
with:
oauth-client-id: ${{ secrets.TS_OAUTH_CLIENT_ID }}
audience: ${{ secrets.TS_AUDIENCE }}
tags: tag:ci
- name: Process docs embeddings
working-directory: ./apps/docs
env:
DATABASE_URL: ${{ secrets.DATABASE_URL }}
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
run: |
bun run content:generate
DOCS_SEARCH_REPORT_PATH=test-results/docs-search-publish.json bun run scripts/index-search.ts
DOCS_SEARCH_REPORT_PATH=test-results/docs-search-check.json bun run scripts/index-search.ts --check
- name: Upload search index report
if: always()
uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
with:
name: docs-search-index
path: |
apps/docs/test-results/docs-search-*.json
${{ runner.temp }}/docs-search-authorization.json