extension_ci: Merge extension workflow files into one file (#48810)

This PR consolidates the two workflow files shipped to extensions into
one, which stops us from requiring a separate runner for what can
actually be done in one workflow.

It also
- adds a check that version bumps will now only be created by zed-zippy
in separate commits.
- Makes the bumping of versions faster and more reliable.
- (Hopefully) fixes an issue we were seeing in some CI tests.

Release Notes:

- N/A
This commit is contained in:
Finn Evers authored and GitHub committed 2026-02-09 21:18:53 +01:00
1 parent fb0af50553
commit 82dedcbc6c
11 files changed
+221 -269

No files matched your search

@@ -2,13 +2,13 @@ use gh_workflow::{
Event, Expression, Input, Job, Level, Permissions, PullRequest, PullRequestType, Push, Run,
Step, UsesJob, Workflow, WorkflowDispatch,
};
use indexmap::IndexMap;
use indoc::indoc;
use crate::tasks::workflows::{
extensions::WithAppSecrets,
runners,
steps::{CommonJobConditions, NamedJob, named},
vars::{self, JobOutput, StepOutput, one_workflow_per_non_main_branch_and_token},
vars::{JobOutput, StepOutput, one_workflow_per_non_main_branch_and_token},
};
pub(crate) fn bump_version() -> Workflow {
@@ -59,13 +59,7 @@ pub(crate) fn call_bump_version(
.add("bump-type", bump_type.to_string())
.add("force-bump", true),
)
.secrets(IndexMap::from([
("app-id".to_owned(), vars::ZED_ZIPPY_APP_ID.to_owned()),
(
"app-secret".to_owned(),
vars::ZED_ZIPPY_APP_PRIVATE_KEY.to_owned(),
),
]));
.with_app_secrets();
named::job(job)
}
@@ -1,31 +0,0 @@
use gh_workflow::{Event, Job, Level, Permissions, Push, UsesJob, Workflow};
use crate::tasks::workflows::{
extensions::WithAppSecrets,
steps::{NamedJob, named},
};
pub(crate) fn release_version() -> Workflow {
let create_release = call_release_version();
named::workflow()
.on(Event::default().push(Push::default().add_tag("v**")))
.add_job(create_release.name, create_release.job)
}
pub(crate) fn call_release_version() -> NamedJob<UsesJob> {
let job = Job::default()
.permissions(
Permissions::default()
.contents(Level::Write)
.pull_requests(Level::Write),
)
.uses(
"zed-industries",
"zed",
".github/workflows/extension_release.yml",
"main",
)
.with_app_secrets();
named::job(job)
}