1use gh_workflow::{Job, UsesJob};
2use indexmap::IndexMap;
3
4use crate::tasks::workflows::vars;
5
6pub(crate) mod bump_version;
7pub(crate) mod release_version;
8pub(crate) mod run_tests;
9
10pub(crate) trait WithAppSecrets: Sized {
11 fn with_app_secrets(self) -> Self;
12}
13
14impl WithAppSecrets for Job<UsesJob> {
15 fn with_app_secrets(self) -> Self {
16 self.secrets(IndexMap::from([
17 ("app-id".to_owned(), vars::ZED_ZIPPY_APP_ID.to_owned()),
18 (
19 "app-secret".to_owned(),
20 vars::ZED_ZIPPY_APP_PRIVATE_KEY.to_owned(),
21 ),
22 ]))
23 }
24}