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
24 lines
570 B
Rust
24 lines
570 B
Rust
use gh_workflow::{Job, UsesJob};
|
|
use indexmap::IndexMap;
|
|
|
|
use crate::tasks::workflows::vars;
|
|
|
|
pub(crate) mod bump_version;
|
|
pub(crate) mod run_tests;
|
|
|
|
pub(crate) trait WithAppSecrets: Sized {
|
|
fn with_app_secrets(self) -> Self;
|
|
}
|
|
|
|
impl WithAppSecrets for Job<UsesJob> {
|
|
fn with_app_secrets(self) -> Self {
|
|
self.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(),
|
|
),
|
|
]))
|
|
}
|
|
}
|