Skip to repository content

tenant.openagents/omega

No repository description is available.

OpenAgents Git authority 2026-07-27T23:28:41.236Z Public web read
NIP-34 coordinate30617:7649603503856e5148d571eac2766b288a8ff1e9e35d380337a1d2b0015b4f92:omega
MaintainersHidden in public view
References2 branches · 1 tag
Read-only clonegit clone https://openagents.com/git/tenant.openagents/omega.git
Browse files

trigger-docs-build

51 lines · 1.2 KB · text
1#!/usr/bin/env bash
2set -euo pipefail
3
4which gh >/dev/null || brew install gh
5
6case "${1:-}" in
7  preview | stable)
8    channel="$1"
9    ;;
10  *)
11    echo "Usage: $0 preview|stable [--from-main]" >&2
12    exit 1
13    ;;
14esac
15
16case "${2:-}" in
17  "")
18    from_main=false
19    ;;
20  --from-main)
21    from_main=true
22    ;;
23  *)
24    echo "Usage: $0 preview|stable [--from-main]" >&2
25    exit 1
26    ;;
27esac
28
29version=$(./script/get-released-version "$channel")
30branch=$(echo "$version" | sed -E 's/^([0-9]+)\.([0-9]+)\.[0-9]+$/v\1.\2.x/')
31workflow_ref="$branch"
32if [ "$from_main" = true ]; then
33  workflow_ref="main"
34fi
35
36echo "Triggering docs build for $channel ($branch) using workflow from $workflow_ref"
37echo "This will publish docs from $branch before the next release."
38echo "Only continue if $branch has no unreleased feature-specific docs."
39read -r -p "Continue? [y/N] " confirmation
40case "$confirmation" in
41  y | Y | yes | YES)
42    ;;
43  *)
44    echo "Cancelled."
45    exit 1
46    ;;
47esac
48
49gh workflow run "deploy_docs.yml" --ref "$workflow_ref" -f channel="$channel" -f checkout_ref="$branch"
50echo "Follow along at: https://github.com/zed-industries/zed/actions/workflows/deploy_docs.yml"
51
Served at tenant.openagents/omega Member data and write actions are omitted.