Skip to repository content

tenant.openagents/omega

No repository description is available.

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

publish_extension_cli.yml

168 lines · 7.1 KB · yaml
1# Generated from xtask::workflows::publish_extension_cli
2# Rebuild with `cargo xtask workflows`.
3name: publish_extension_cli
4env:
5  CARGO_TERM_COLOR: always
6  CARGO_INCREMENTAL: '0'
7on:
8  workflow_dispatch:
9    inputs:
10      message:
11        description: Describe why the extension CLI is being bumped and/or what changes are included.
12        required: true
13        type: string
14permissions:
15  contents: read
16jobs:
17  publish_job:
18    if: (github.repository_owner == 'zed-industries' || github.repository_owner == 'zed-extensions') && github.ref == 'refs/heads/main'
19    runs-on: namespace-profile-16x32-ubuntu-2204
20    steps:
21    - name: steps::checkout_repo
22      uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd
23      with:
24        clean: false
25    - name: steps::cache_rust_dependencies_namespace
26      uses: namespacelabs/nscloud-cache-action@a90bb5d4b27522ce881c6e98eebd7d7e6d1653f9
27      with:
28        cache: rust
29        path: ~/.rustup
30    - name: steps::setup_linux
31      run: ./script/linux
32    - name: publish_extension_cli::publish_job::build_extension_cli
33      run: cargo build --release --package extension_cli
34    - name: publish_extension_cli::publish_job::upload_binary
35      run: script/upload-extension-cli "$GITHUB_SHA"
36      env:
37        DIGITALOCEAN_SPACES_ACCESS_KEY: ${{ secrets.DIGITALOCEAN_SPACES_ACCESS_KEY }}
38        DIGITALOCEAN_SPACES_SECRET_KEY: ${{ secrets.DIGITALOCEAN_SPACES_SECRET_KEY }}
39    - id: generate-token
40      name: steps::authenticate_as_zippy
41      uses: actions/create-github-app-token@f8d387b68d61c58ab83c6c016672934102569859
42      with:
43        app-id: ${{ secrets.ZED_ZIPPY_APP_ID }}
44        private-key: ${{ secrets.ZED_ZIPPY_APP_PRIVATE_KEY }}
45        owner: ${{ github.repository_owner }}
46        repositories: ${{ github.event.repository.name }}
47        permission-contents: write
48    - name: steps::update_tag
49      uses: actions/github-script@f28e40c7f34bde8b3046d885e986cb6290c5673b
50      with:
51        script: |
52          github.rest.git.updateRef({
53              owner: context.repo.owner,
54              repo: context.repo.repo,
55              ref: 'tags/extension-cli',
56              sha: context.sha,
57              force: true
58          })
59        github-token: ${{ steps.generate-token.outputs.token }}
60  update_sha_in_zed:
61    needs:
62    - publish_job
63    if: (github.repository_owner == 'zed-industries' || github.repository_owner == 'zed-extensions') && github.ref == 'refs/heads/main'
64    runs-on: namespace-profile-8x16-ubuntu-2204
65    steps:
66    - id: generate-token
67      name: steps::generate_token
68      uses: actions/create-github-app-token@f8d387b68d61c58ab83c6c016672934102569859
69      with:
70        app-id: ${{ secrets.ZED_ZIPPY_APP_ID }}
71        private-key: ${{ secrets.ZED_ZIPPY_APP_PRIVATE_KEY }}
72        owner: ${{ github.repository_owner }}
73        repositories: ${{ github.event.repository.name }}
74        permission-contents: write
75        permission-pull-requests: write
76        permission-workflows: write
77    - name: steps::checkout_repo
78      uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd
79      with:
80        clean: false
81    - name: steps::cache_rust_dependencies_namespace
82      uses: namespacelabs/nscloud-cache-action@a90bb5d4b27522ce881c6e98eebd7d7e6d1653f9
83      with:
84        cache: rust
85        path: ~/.rustup
86    - id: short-sha
87      name: publish_extension_cli::get_short_sha
88      run: |
89        echo "sha_short=$(echo "$GITHUB_SHA" | cut -c1-7)" >> "$GITHUB_OUTPUT"
90    - name: publish_extension_cli::update_sha_in_zed::replace_sha
91      run: |
92        sed -i "s/ZED_EXTENSION_CLI_SHA: &str = \"[a-f0-9]*\"/ZED_EXTENSION_CLI_SHA: \&str = \"$GITHUB_SHA\"/" \
93            tooling/xtask/src/tasks/workflows/extension_tests.rs
94    - name: publish_extension_cli::update_sha_in_zed::regenerate_workflows
95      run: cargo xtask workflows
96    - name: steps::create_pull_request
97      uses: peter-evans/create-pull-request@98357b18bf14b5342f975ff684046ec3b2a07725
98      with:
99        title: 'extension_ci: Bump extension CLI version to `${{ steps.short-sha.outputs.sha_short }}`'
100        body: |
101          This PR bumps the extension CLI version used in the extension workflows to `${{ github.sha }}`.
102
103          ${{ inputs.message }}
104
105          Release Notes:
106
107          - N/A
108        commit-message: 'extension_ci: Bump extension CLI version to `${{ steps.short-sha.outputs.sha_short }}`'
109        branch: update-extension-cli-sha
110        committer: zed-zippy[bot] <234243425+zed-zippy[bot]@users.noreply.github.com>
111        author: zed-zippy[bot] <234243425+zed-zippy[bot]@users.noreply.github.com>
112        base: main
113        delete-branch: true
114        token: ${{ steps.generate-token.outputs.token }}
115        sign-commits: true
116        assignees: ${{ github.actor }}
117  update_sha_in_extensions:
118    needs:
119    - publish_job
120    if: (github.repository_owner == 'zed-industries' || github.repository_owner == 'zed-extensions') && github.ref == 'refs/heads/main'
121    runs-on: namespace-profile-2x4-ubuntu-2404
122    steps:
123    - id: generate-token
124      name: steps::generate_token
125      uses: actions/create-github-app-token@f8d387b68d61c58ab83c6c016672934102569859
126      with:
127        app-id: ${{ secrets.ZED_ZIPPY_APP_ID }}
128        private-key: ${{ secrets.ZED_ZIPPY_APP_PRIVATE_KEY }}
129        owner: zed-industries
130        repositories: extensions
131        permission-contents: write
132        permission-pull-requests: write
133        permission-workflows: write
134    - id: short-sha
135      name: publish_extension_cli::get_short_sha
136      run: |
137        echo "sha_short=$(echo "$GITHUB_SHA" | cut -c1-7)" >> "$GITHUB_OUTPUT"
138    - name: publish_extension_cli::update_sha_in_extensions::checkout_extensions_repo
139      uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
140      with:
141        repository: zed-industries/extensions
142        token: ${{ steps.generate-token.outputs.token }}
143    - name: publish_extension_cli::update_sha_in_extensions::replace_sha
144      run: |
145        sed -i "s/ZED_EXTENSION_CLI_SHA: [a-f0-9]*/ZED_EXTENSION_CLI_SHA: $GITHUB_SHA/" \
146            .github/workflows/ci.yml
147    - name: steps::create_pull_request
148      uses: peter-evans/create-pull-request@98357b18bf14b5342f975ff684046ec3b2a07725
149      with:
150        title: Bump extension CLI version to `${{ steps.short-sha.outputs.sha_short }}`
151        body: |
152          This PR bumps the extension CLI version to https://github.com/zed-industries/zed/commit/${{ github.sha }}.
153
154          ${{ inputs.message }}
155        commit-message: Bump extension CLI version to `${{ steps.short-sha.outputs.sha_short }}`
156        branch: update-extension-cli-sha
157        committer: zed-zippy[bot] <234243425+zed-zippy[bot]@users.noreply.github.com>
158        author: zed-zippy[bot] <234243425+zed-zippy[bot]@users.noreply.github.com>
159        base: main
160        delete-branch: true
161        token: ${{ steps.generate-token.outputs.token }}
162        sign-commits: true
163        assignees: ${{ github.actor }}
164        labels: allow-no-extension
165defaults:
166  run:
167    shell: bash -euxo pipefail {0}
168
Served at tenant.openagents/omega Member data and write actions are omitted.