Add more workflows for extension repositories (#43924)

This PR adds workflows to be used for CD in extension reposiories in the
`zed-extensions` organization and updates some of the existing ones with
minor improvemts.

Release Notes:

- N/A
This commit is contained in:
Finn Evers
2025-12-01 19:00:54 +01:00
committed by GitHub
parent 628c52a96a
commit c8166abbcb
18 changed files with 565 additions and 92 deletions
+48
View File
@@ -0,0 +1,48 @@
# Generated from xtask::workflows:: within the Zed repository.extensions::bump_version
# Rebuild with `cargo xtask workflows`.
name: extensions::bump_version
on:
pull_request:
types:
- labeled
push:
branches:
- main
jobs:
determine_bump_type:
runs-on: namespace-profile-16x32-ubuntu-2204
steps:
- id: get-bump-type
name: extensions::bump_version::get_bump_type
run: |
if [ "$HAS_MAJOR_LABEL" = "true" ]; then
bump_type="major"
elif [ "$HAS_MINOR_LABEL" = "true" ]; then
bump_type="minor"
else
bump_type="patch"
fi
echo "bump_type=$bump_type" >> $GITHUB_OUTPUT
shell: bash -euxo pipefail {0}
env:
HAS_MAJOR_LABEL: |-
${{ (github.event.action == 'labeled' && github.event.label.name == 'major') ||
(github.event.action == 'synchronize' && contains(github.event.pull_request.labels.*.name, 'major')) }}
HAS_MINOR_LABEL: |-
${{ (github.event.action == 'labeled' && github.event.label.name == 'minor') ||
(github.event.action == 'synchronize' && contains(github.event.pull_request.labels.*.name, 'minor')) }}
outputs:
bump_type: ${{ steps.get-bump-type.outputs.bump_type }}
call_bump_version:
needs:
- determine_bump_type
if: |-
(github.event.action == 'labeled' && needs.determine_bump_type.outputs.bump_type != 'patch') ||
github.event_name == 'push'
uses: zed-industries/zed/.github/workflows/extension_bump.yml@main
secrets:
app-id: ${{ secrets.ZED_ZIPPY_APP_ID }}
app-secret: ${{ secrets.ZED_ZIPPY_APP_PRIVATE_KEY }}
with:
bump-type: ${{ needs.determine_bump_type.outputs.bump_type }}
force-bump: true
+13
View File
@@ -0,0 +1,13 @@
# Generated from xtask::workflows:: within the Zed repository.extensions::release_version
# Rebuild with `cargo xtask workflows`.
name: extensions::release_version
on:
push:
tags:
- v**
jobs:
call_release_version:
uses: zed-industries/zed/.github/workflows/extension_release.yml@main
secrets:
app-id: ${{ secrets.ZED_ZIPPY_APP_ID }}
app-secret: ${{ secrets.ZED_ZIPPY_APP_PRIVATE_KEY }}
+13
View File
@@ -0,0 +1,13 @@
# Generated from xtask::workflows:: within the Zed repository.extensions::run_tests
# Rebuild with `cargo xtask workflows`.
name: extensions::run_tests
on:
pull_request:
branches:
- '**'
jobs:
call_extension_tests:
uses: zed-industries/zed/.github/workflows/extension_tests.yml@main
concurrency:
group: ${{ github.workflow }}-${{ github.ref_name }}-${{ github.ref_name == 'main' && github.sha || 'anysha' }}
cancel-in-progress: true