Skip to repository content

tenant.openagents/omega

No repository description is available.

OpenAgents Git authority 2026-07-28T01:38:26.900Z 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

extension_auto_bump.yml

83 lines · 3.0 KB · yaml
1# Generated from xtask::workflows::extension_auto_bump
2# Rebuild with `cargo xtask workflows`.
3name: extension_auto_bump
4on:
5  push:
6    branches:
7    - main
8    paths:
9    - extensions/**
10    - '!extensions/test-extension/**'
11    - '!extensions/workflows/**'
12    - '!extensions/*.md'
13permissions:
14  contents: read
15jobs:
16  detect_changed_extensions:
17    if: (github.repository_owner == 'zed-industries' || github.repository_owner == 'zed-extensions')
18    runs-on: namespace-profile-2x4-ubuntu-2404
19    steps:
20    - name: steps::checkout_repo
21      uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd
22      with:
23        clean: false
24        fetch-depth: 2
25    - id: detect
26      name: extension_auto_bump::detect_changed_extensions
27      run: |
28        COMPARE_REV="$(git rev-parse HEAD~1)"
29        CHANGED_FILES="$(git diff --name-only "$COMPARE_REV" "$GITHUB_SHA")"
30        # Detect changed extension directories (excluding extensions/workflows)
31        CHANGED_EXTENSIONS=$(echo "$CHANGED_FILES" | grep -oP '^extensions/[^/]+(?=/)' | sort -u | grep -v '^extensions/workflows$' || true)
32        # Filter out deleted extensions
33        EXISTING_EXTENSIONS=""
34        for ext in $CHANGED_EXTENSIONS; do
35            if [ -f "$ext/extension.toml" ]; then
36                EXISTING_EXTENSIONS=$(printf '%s\n%s' "$EXISTING_EXTENSIONS" "$ext")
37            fi
38        done
39        CHANGED_EXTENSIONS=$(echo "$EXISTING_EXTENSIONS" | sed '/^$/d')
40        if [ -n "$CHANGED_EXTENSIONS" ]; then
41            EXTENSIONS_JSON=$(echo "$CHANGED_EXTENSIONS" | jq -R -s -c 'split("\n") | map(select(length > 0))')
42        else
43            EXTENSIONS_JSON="[]"
44        fi
45        # Filter out newly added extensions
46        FILTERED="[]"
47        for ext in $(echo "$EXTENSIONS_JSON" | jq -r '.[]'); do
48            if git show HEAD~1:"$ext/extension.toml" >/dev/null 2>&1; then
49                FILTERED=$(echo "$FILTERED" | jq -c --arg e "$ext" '. + [$e]')
50            fi
51        done
52        echo "changed_extensions=$FILTERED" >> "$GITHUB_OUTPUT"
53    outputs:
54      changed_extensions: ${{ steps.detect.outputs.changed_extensions }}
55    timeout-minutes: 5
56  bump_extension_versions:
57    needs:
58    - detect_changed_extensions
59    if: needs.detect_changed_extensions.outputs.changed_extensions != '[]'
60    permissions:
61      actions: write
62      contents: write
63      issues: write
64      pull-requests: write
65    strategy:
66      matrix:
67        extension: ${{ fromJson(needs.detect_changed_extensions.outputs.changed_extensions) }}
68      fail-fast: false
69      max-parallel: 1
70    uses: ./.github/workflows/extension_bump.yml
71    secrets:
72      app-id: ${{ secrets.ZED_ZIPPY_APP_ID }}
73      app-secret: ${{ secrets.ZED_ZIPPY_APP_PRIVATE_KEY }}
74    with:
75      working-directory: ${{ matrix.extension }}
76      force-bump: false
77concurrency:
78  group: ${{ github.workflow }}-${{ github.ref_name }}-${{ github.ref_name == 'main' && github.sha || 'anysha' }}
79  cancel-in-progress: true
80defaults:
81  run:
82    shell: bash -euxo pipefail {0}
83
Served at tenant.openagents/omega Member data and write actions are omitted.